【光环助手V5.5.0】游戏单活动:解锁好游种草新姿势(客户端部分)https://git.shanqu.cc/pm/halo-app-issues/-/issues/1638
This commit is contained in:
@ -584,6 +584,27 @@ public class LogUtils {
|
||||
.postShareResult(body)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.subscribe(new EmptyResponse<>());
|
||||
|
||||
// 判断是否上报游戏单活动的"转发活动"任务
|
||||
postGameCollectionRepostActivityTaskCheck(url, shareResult);
|
||||
}
|
||||
|
||||
@SuppressLint("CheckResult")
|
||||
public static void postGameCollectionRepostActivityTaskCheck(String url, String shareResult) {
|
||||
if (!TextUtils.isEmpty(url) && "success".equals(shareResult)) {
|
||||
String gameCollectionActivityUrl;
|
||||
if (EnvHelper.isDevEnv()) {
|
||||
gameCollectionActivityUrl = Constants.GAME_COLLECTION_ACTIVITY_ADDRESS_DEV;
|
||||
} else {
|
||||
gameCollectionActivityUrl = Constants.GAME_COLLECTION_ACTIVITY_ADDRESS;
|
||||
}
|
||||
if (url.contains(gameCollectionActivityUrl)) {
|
||||
RetrofitManager.getInstance(HaloApp.getInstance().getApplication()).getNewApi()
|
||||
.postGameCollectionTask("repost_activity")
|
||||
.subscribeOn(Schedulers.io())
|
||||
.subscribe(new EmptyResponse<>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static JSONObject getMetaObject() {
|
||||
|
||||
Reference in New Issue
Block a user