ソースを参照

修改游戏主页抢红包显示逻辑

zengjiebin 7 年 前
コミット
b0318f95a7

+ 2 - 2
app/src/main/java/com/sheep/gamegroup/di/modules/NetModule.java

@@ -49,9 +49,9 @@ public class NetModule {
     public Retrofit provideRetrofit(OkHttpClient okhttpClient) {
         Retrofit retrofit = new Retrofit.Builder()
                 .client(okhttpClient)
-//                .baseUrl(SheepApp.getInstance().getConnectAddress().getAppUrl()+"v1/")
+                .baseUrl(SheepApp.getInstance().getConnectAddress().getAppUrl()+"v1/")
 //                .baseUrl("http://10.8.240.155:8080/v1/")
-                .baseUrl("http://ss.17xmy.com/v1/")
+//                .baseUrl("http://ss.17xmy.com/v1/")
                 .addConverterFactory(StringConverterFactory.create())
                 .addConverterFactory(FastJsonConverterFactory.create())
 //                .addConverterFactory(GsonConverterFactory.create(EntityUtils.gson))//

+ 1 - 1
app/src/main/java/com/sheep/gamegroup/module/game/fragment/FgtGameCenter.java

@@ -104,7 +104,7 @@ public class FgtGameCenter extends BaseFragment {
                     @Override
                     public void onNext(BaseMessage baseMessage) {
                         boolean result = baseMessage.getData(Boolean.class);
-                        ViewUtil.setVisibility(fgt_gc_hb_500_yuan_drl, result);
+                        ViewUtil.setVisibility(fgt_gc_hb_500_yuan_drl, !result);//不是会长或会长邀请的才显示
                     }
 
                     @Override