billyyoyo 5 lat temu
rodzic
commit
2e47130852

+ 2 - 0
app/src/main/java/com/sheep/gamegroup/util/CertificationUtil.java

@@ -133,6 +133,8 @@ public class CertificationUtil {
                             Jump2View.getInstance().goAuthRealname(activity, token);
                         } else if (baseMessage.getCode() == 404000033) {
                             G.showToast(baseMessage);
+                        } else if (baseMessage.getCode() == 404000030) {
+                            G.showToast(baseMessage);
                         } else {
                             showCertificationErrorAndExitApp(activity, "请求授权错误 " + baseMessage.getMsg(), 1000);
                         }

+ 5 - 3
app/src/main/java/com/sheep/gamegroup/util/CommonUtil.java

@@ -1480,11 +1480,13 @@ public class CommonUtil {
                             Jump2View.getInstance().goBindMobile(activity, token);
                         } else if (baseMessage.getCode() == 404000025) {
                             Jump2View.getInstance().goAuthRealname(activity, token);
-                        } else if (baseMessage.getCode() == 404000033) {
+                        } else if (baseMessage.getCode() == 404000033 || baseMessage.getCode() == 404000030) {
                             G.showToast(baseMessage);
+                            return;
+                        } else {
+                            if (action1 != null)
+                                action1.call(false);
                         }
-                        if (action1 != null)
-                            action1.call(false);
 
                     }
 

+ 5 - 4
app/src/main/java/com/sheep/gamegroup/util/Jump2View.java

@@ -2107,10 +2107,11 @@ public class Jump2View {
      * @param id
      */
     public void goFindInformation(Context context, String title, int id) {
-        Intent intent = new Intent(context, ActArticleComment.class);
-        DataUtil.putObject(intent, id);
-        intent.putExtra("title", title);
-        context.startActivity(intent);
+//        Intent intent = new Intent(context, ActArticleComment.class);
+//        DataUtil.putObject(intent, id);
+//        intent.putExtra("title", title);
+//        context.startActivity(intent);
+        goWeb(context, new WebParams(Config.getUrlByPath(Config.PATH_ARTICLE_DETAIL, "id", id), title).hideProgress());
         USER_FIND_APP_ORDER.onEvent();
     }
 

+ 17 - 2
app/src/main/java/com/sheep/gamegroup/util/js/KFZSJs.java

@@ -311,6 +311,16 @@ public class KFZSJs {
         Jump2View.getInstance().gotoYYShopMerchandiseById(activity, merId);
     }
 
+    @JavascriptInterface
+    public void gotoCommentDetail(int id) {
+        Jump2View.getInstance().goActAppCommentDetail(id);
+    }
+
+    @JavascriptInterface
+    public void gotoUserHome(int id) {
+        Jump2View.getInstance().goActUserAppHome(activity, id);
+    }
+
     //h5调用分享 window.kfzsjs.shareLink(link, iconUrl, title, des);
     @JavascriptInterface
     public void shareLink(String link, String iconUrl, String title, String des) {
@@ -671,6 +681,11 @@ public class KFZSJs {
     }
 
     @JavascriptInterface
+    public void showPraiseAnimation() {
+        activity.runOnUiThread(() -> ViewUtil.showUpGifDialog(activity));
+    }
+
+    @JavascriptInterface
     public void goActPlayGameList(int type, String name, boolean isGameGroupMore) {
         GameListType gameListType = new GameListType();
         gameListType.setPort_type(type);
@@ -726,13 +741,13 @@ public class KFZSJs {
     }
 
     @JavascriptInterface
-    public void goNotice(String text){
+    public void goNotice(String text) {
         BulletinEnty item = JSONObject.parseObject(text, BulletinEnty.class);
         Jump2View.getInstance().onClickNotice(activity, item);
     }
 
     @JavascriptInterface
-    public boolean isNewbie(){
+    public boolean isNewbie() {
         return CommonUtil.getInstance().addNewTask(activity, DataUtil.getInstance().getUserEntity());
     }
 

+ 1 - 0
app/src/main/java/com/sheep/jiuyan/samllsheep/Config.java

@@ -105,6 +105,7 @@ public class Config {
     public static final String PATH_ARTICLE_LIST = STATION_APP + "/article-list";
     public static final String PATH_WELFARE_DETAIL = STATION_APP + "/detail";
     public static final String PATH_DISCOUNT_DESC = STATION_APP + "/discount";
+    public static final String PATH_ARTICLE_DETAIL = STATION_APP + "/article-detail";
     //游戏商城
     public static final String PATH_GAME_SHOP_HOME = STATION_GAME_SHOP + "/gameMallHome";
     public static final String PATH_GAME_SHOP_MY_GAME = STATION_GAME_SHOP + "/myGameRole";