Browse Source

Merge branch 'xhz_push' of http://git.quyaqu.com/xieshengqi/LoanMarket into xhz_push

小狼 5 years ago
parent
commit
01fe0225b1

+ 6 - 3
app/build.gradle

@@ -15,8 +15,8 @@ android {
15 15
         applicationId "com.smileflowpig.money"
16 16
         minSdkVersion 19
17 17
         targetSdkVersion 28
18
-        versionCode 5
19
-        versionName "1.3.0"
18
+        versionCode 6
19
+        versionName "1.3.1"
20 20
         multiDexEnabled true
21 21
         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
22 22
     }
@@ -95,7 +95,10 @@ android {
95 95
             buildConfigField 'String', 'CHANNLE', '"1003"'
96 96
         }
97 97
 
98
-
98
+        search360 {
99
+            manifestPlaceholders = [UMENG_CHANNEL_VALUE: "4001"]
100
+            buildConfigField 'String', 'CHANNLE', '"4001"'
101
+        }
99 102
 
100 103
 
101 104
     }

+ 5 - 1
app/src/main/java/com/smileflowpig/money/moneyplatfrom/activities/MyDatumActivity.java

@@ -48,9 +48,13 @@ public class MyDatumActivity extends PresenterActivity implements View.OnClickLi
48 48
         super.onCreate(savedInstanceState);
49 49
 
50 50
         initview();
51
-        myphone = getIntent().getStringExtra("myphone");
51
+        try {
52
+            myphone = getIntent().getStringExtra("myphone");
52 53
         String s = myphone.substring(0, 3) + "****" + myphone.substring(7, myphone.length());
53 54
         cardphone.setText(s);
55
+        }catch (Exception e){
56
+
57
+        }
54 58
 
55 59
     }
56 60
     public void initview(){

+ 12 - 9
app/src/main/java/com/smileflowpig/money/moneyplatfrom/frags/main/state/NewMineFragment.java

@@ -152,14 +152,7 @@ public class NewMineFragment extends PresenterFragment<StateContract.Presenter>
152 152
     @Override
153 153
     protected void initWidget(View root) {
154 154
         super.initWidget(root);
155
-        if (LoginStatusUtil.isLogin()) {
156
-            //登录先显示缓存的
157
-            String nick = (String) SPUtil.get(getActivity(), com.smileflowpig.money.factory.Constant.UserInfo.NICK, "");
158
-            String icon_url = (String) SPUtil.get(getActivity(), com.smileflowpig.money.factory.Constant.UserInfo.ICONURL, "");
159
-            login.setText(nick);
160
-            Glide.with(getActivity()).load(icon_url).into(loginicon);
161
-            mPresenter.start();
162
-        }
155
+
163 156
 
164 157
     }
165 158
 
@@ -361,7 +354,17 @@ public class NewMineFragment extends PresenterFragment<StateContract.Presenter>
361 354
     @Override
362 355
     public void onResume() {
363 356
         super.onResume();
364
-
357
+        if (LoginStatusUtil.isLogin()) {
358
+            //登录先显示缓存的
359
+            String nick = (String) SPUtil.get(getActivity(), com.smileflowpig.money.factory.Constant.UserInfo.NICK, "");
360
+            String icon_url = (String) SPUtil.get(getActivity(), com.smileflowpig.money.factory.Constant.UserInfo.ICONURL, "");
361
+            login.setText(nick);
362
+            Glide.with(getActivity()).load(icon_url).into(loginicon);
363
+            mPresenter.start();
364
+        }else{
365
+            login.setText("注册/登录");
366
+            loginicon.setImageResource(R.mipmap.loginicon);
367
+        }
365 368
 
366 369
     }
367 370