diff --git a/app/src/main/java/com/gh/common/util/DirectUtils.kt b/app/src/main/java/com/gh/common/util/DirectUtils.kt index fe58c6f34f..e6a5095835 100644 --- a/app/src/main/java/com/gh/common/util/DirectUtils.kt +++ b/app/src/main/java/com/gh/common/util/DirectUtils.kt @@ -82,7 +82,6 @@ import org.greenrobot.eventbus.EventBus import retrofit2.HttpException import java.net.URLEncoder import java.util.* -import kotlin.collections.ArrayList import kotlin.math.roundToInt /** @@ -668,10 +667,11 @@ object DirectUtils { bundle.putSerializable(KEY_SUGGESTTYPE, SuggestType.normal) } else { bundle.putString(KEY_CONTENT, content) - bundle.putSerializable(KEY_SUGGESTTYPE, SuggestType.gameQuestion) if (TextUtils.isEmpty(hintType)) { + bundle.putSerializable(KEY_SUGGESTTYPE, SuggestType.gameQuestion) bundle.putString(KEY_SUGGEST_HINT_TYPE, KEY_PLUGIN) } else { + bundle.putSerializable(KEY_SUGGESTTYPE, SuggestType.normal) bundle.putString(KEY_SUGGEST_HINT_TYPE, hintType) } } diff --git a/app/src/main/java/com/gh/gamecenter/SkipActivity.java b/app/src/main/java/com/gh/gamecenter/SkipActivity.java index e815ac95e5..35846ca5a2 100644 --- a/app/src/main/java/com/gh/gamecenter/SkipActivity.java +++ b/app/src/main/java/com/gh/gamecenter/SkipActivity.java @@ -120,6 +120,7 @@ public class SkipActivity extends BaseActivity { String gameId = uri.getQueryParameter(EntranceConsts.KEY_GAMEID); String packageMd5 = uri.getQueryParameter(EntranceConsts.KEY_PACKAGE_MD5); String isQaFeedbackString = uri.getQueryParameter(EntranceConsts.KEY_IS_QA_FEEDBACK); + String suggestionType = uri.getQueryParameter(KEY_TYPE); boolean isQaFeedback = !TextUtils.isEmpty(isQaFeedbackString) && isQaFeedbackString.equals("true"); String content = (TextUtils.isEmpty(gameId) || TextUtils.isEmpty(packageMd5)) ? String.format("%s-%s-V%s,", @@ -135,6 +136,8 @@ public class SkipActivity extends BaseActivity { String qaTitle = uri.getQueryParameter(EntranceConsts.KEY_QA_TITLE); if (!TextUtils.isEmpty(qaId)) { DirectUtils.directToQa(this, qaTitle, qaId); + } else if ("vgame".equals(suggestionType)) { + DirectUtils.directToFeedback(this, content, "game", isQaFeedback, qaContentId, EntranceConsts.ENTRANCE_BROWSER); } else { DirectUtils.directToFeedback(this, content, null, isQaFeedback, qaContentId, EntranceConsts.ENTRANCE_BROWSER); }