Browse Source

屏蔽掉小绵羊安卓app中游戏直充功能的入口

zengjiebin 7 years ago
parent
commit
4c04d4111c

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

@@ -1944,6 +1944,10 @@ public class Jump2View {
      * 游戏代充
      */
     public void goGameRecharge(Activity activity, Object o) {
+        if(!Config.IS_OPEN_GAME_RECHARGE){//关闭游戏直充功能
+            G.showToast(R.string.un_use_function);
+            return;
+        }
         Intent intent = new Intent(activity, ActGameAgencyRecharge.class);
         activity.startActivity(intent);
         GAME_INSTEAD_OF_RECHARGE.onEvent();

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

@@ -64,4 +64,7 @@ public class Config {
 //        UserEntity userEntity = DataUtil.getInstance().getUserEntity();
 //        return userEntity != null && userEntity.isGameUser();
     }
+
+    //游戏直充功能开启状态
+    public static boolean IS_OPEN_GAME_RECHARGE = false;
 }

+ 1 - 0
app/src/main/res/layout/act_my_money.xml

@@ -282,6 +282,7 @@
                         android:textColor="#ff333333"
                         android:onClick="onClickGameRecharge"
                         android:textSize="12sp"
+                        android:visibility="gone"
                         android:text="游戏直充"/>
                     <TextView
                         android:layout_width="0dp"

+ 1 - 0
app/src/main/res/layout/new_year_act_my_money.xml

@@ -318,6 +318,7 @@
                         android:gravity="center"
                         android:onClick="onClickGameRecharge"
                         android:text="游戏直充"
+                        android:visibility="gone"
                         android:textColor="#ff333333"
                         android:textSize="12sp" />
 

+ 1 - 0
app/src/main/res/values/str_network_strings.xml

@@ -13,4 +13,5 @@
     <string name="wushuju">还没有数据哦</string>
     <string name="wushuju_net_error">网络错误,请稍候再试</string>
     <string name="please_contact_customer_service">数据错误,请联系客服</string>
+    <string name="un_use_function">该功能已经下架,如有疑问,请联系客服</string>
 </resources>