This commit is contained in:
juntao
2021-06-24 15:14:34 +08:00
parent 144a0641b6
commit 9e13675ca5
2 changed files with 3 additions and 2 deletions

View File

@ -172,7 +172,7 @@ class OkHttpCacheInterceptor implements Interceptor {
*/
private String appendUserMarkIfNeeded(String url) {
if (TextUtils.isEmpty(url)
// || TextUtils.isEmpty(HaloApp.getInstance().getServerUserMark())
|| TextUtils.isEmpty(HaloApp.getInstance().getServerUserMark())
|| url.contains("mark=")) {
return url;
}

View File

@ -79,8 +79,9 @@ open class SearchDefaultFragment : BaseFragment<Any>() {
hotSearch.exposureEvent = ExposureEvent.createEvent(
hotSearch.toGameEntity().apply { sequence = index },
listOf(ExposureSource("首页搜索"), ExposureSource("热门搜索")))
hotSearch.name = hotSearch.name.removeSuffix(".")
if (!hotSearch.name.endsWith(hotSearch.nameSuffix ?: "")) {
hotSearch.name = hotSearch.name.removeSuffix(".") + (hotSearch.nameSuffix ?: "")
hotSearch.name = hotSearch.name + (hotSearch.nameSuffix ?: "")
}
ExposureManager.log(hotSearch.exposureEvent!!)
}