Explorar o código

small tune up

billyyoyo %!s(int64=6) %!d(string=hai) anos
pai
achega
e70f24f879

+ 24 - 0
app/src/main/java/com/sheep/gamegroup/util/js/KFZSJs.java

@@ -25,6 +25,7 @@ import com.sheep.gamegroup.greendao.download.SheepAd;
 import com.sheep.gamegroup.model.api.IWeb;
 import com.sheep.gamegroup.model.entity.BaseMessage;
 import com.sheep.gamegroup.model.entity.DialogConfig;
+import com.sheep.gamegroup.model.entity.GameListTag;
 import com.sheep.gamegroup.model.entity.GameListType;
 import com.sheep.gamegroup.model.entity.Release_task;
 import com.sheep.gamegroup.model.entity.TaskEty;
@@ -140,6 +141,11 @@ public class KFZSJs {
     }
 
     @JavascriptInterface
+    public void gotoDownload(){
+        Jump2View.getInstance().goActDownloadManager(activity);
+    }
+
+    @JavascriptInterface
     public void startApp(String pkg, String cls) {
         PackageUtil.startApp(activity, pkg);
     }
@@ -295,6 +301,16 @@ public class KFZSJs {
         Jump2View.getInstance().gotoYfShop(activity);
     }
 
+    @JavascriptInterface
+    public void jumpYYShop() {
+        Jump2View.getInstance().gotoYYShop(activity);
+    }
+
+    @JavascriptInterface
+    public void jumpYYGoods(String merId) {
+        Jump2View.getInstance().gotoYYShopMerchandiseById(activity, merId);
+    }
+
     //h5调用分享 window.kfzsjs.shareLink(link, iconUrl, title, des);
     @JavascriptInterface
     public void shareLink(String link, String iconUrl, String title, String des) {
@@ -653,6 +669,14 @@ public class KFZSJs {
     }
 
     @JavascriptInterface
+    public void goActGameListByTag(int id, String name){
+        GameListTag tag= new GameListTag();
+        tag.setId(id);
+        tag.setName(name);
+        Jump2View.getInstance().goActPlayGameList(activity, tag);
+    }
+
+    @JavascriptInterface
     public void goZoneGameList(int id, String name) {
         GameListType type = new GameListType();
         type.setSpecial_id(id);

+ 7 - 6
app/src/main/java/com/sheep/gamegroup/view/activity/ActWebShareImage.java

@@ -122,12 +122,13 @@ public class ActWebShareImage extends BaseUMActivity {
         nameList.add("微信");
         nameList.add("QQ好友");
         nameList.add("朋友圈");
-        list.add(0, ShareLinkConfig.FACE_TO_FACE);
-        list.add(ShareLinkConfig.COPY_SHARE_LINK);
-        imgList.add(0, R.mipmap.share_face_to_face);
-        imgList.add(R.mipmap.share_copy_share_link);
-        nameList.add(0, "面对面");
-        nameList.add("复制链接");
+//        list.add(0, ShareLinkConfig.FACE_TO_FACE);
+//        list.add(0, ShareLinkConfig.FACE_TO_FACE);
+//        list.add(ShareLinkConfig.COPY_SHARE_LINK);
+//        imgList.add(0, R.mipmap.share_face_to_face);
+//        imgList.add(R.mipmap.share_copy_share_link);
+//        nameList.add(0, "面对面");
+//        nameList.add("复制链接");
         AdbCommonRecycler<String> adapter = new AdbCommonRecycler<String>(this, list) {
             @Override
             public int getViewIdByType(int type) {

+ 1 - 1
app/src/main/java/com/sheep/gamegroup/view/activity/RealNameAuthenAct.java

@@ -238,7 +238,7 @@ public class RealNameAuthenAct extends BaseActivity implements RealNameAutherCon
         String idNumber;
         String bankCard;
         String bankCardMobile;
-        if (TextUtils.isEmpty((realName = etName.getText().toString()))) {
+        if (TextUtils.isEmpty((realName = etName.getText().toString().trim()))) {
             if (TestUtil.isDev()) {
                 NetSuccess(0, "测试成功", "");
                 return;