Browse Source

3.01个人资料

小狼 5 years ago
parent
commit
b41b457b6a

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

@@ -245,7 +245,7 @@ public class IdentityCardActivity extends PresenterActivity implements View.OnCl
245 245
     }
246 246
 
247 247
     private void recIDCard(String idCardSide, String filePath) {
248
-        System.out.println(filePath+"路径");
248
+
249 249
         IDCardParams param = new IDCardParams();
250 250
         param.setImageFile(new File(filePath));
251 251
         // 设置身份证正反面

+ 16 - 11
app/src/main/java/com/smileflowpig/money/moneyplatfrom/activities/MyDatumActivity.java

@@ -48,6 +48,7 @@ public class MyDatumActivity extends PresenterActivity implements View.OnClickLi
48 48
     private String alipay_id;
49 49
     private String real_name;
50 50
     private DataHomeBean.RstBean rst;
51
+    private boolean isover=false;
51 52
 
52 53
     @Override
53 54
     protected boolean isNeedNotch() {
@@ -97,11 +98,11 @@ public class MyDatumActivity extends PresenterActivity implements View.OnClickLi
97 98
                 }else {
98 99
                     cardphone.setText("已认证");
99 100
                 }
100
-//                if(rst.is_identity==0){
101
-//                    identycard.setText("去认证");
102
-//                }else {
103
-//                    identycard.setText("已认证");
104
-//                }
101
+                if(rst.is_identity==0){
102
+                    isover=true;
103
+                }else {
104
+                    isover=false;
105
+                }
105 106
                 if(rst.is_contact==0){
106 107
                     people.setText("去添加");
107 108
                 }else {
@@ -151,6 +152,7 @@ public class MyDatumActivity extends PresenterActivity implements View.OnClickLi
151 152
                             identycard.setText(s);
152 153
                             authentication.setClickable(false);
153 154
                         }
155
+
154 156
                         if(rst.alipay_id!=null){
155 157
                             if(!rst.alipay_id.equals("")){
156 158
                                 String alipay_id = rst.alipay_id;
@@ -196,13 +198,16 @@ public class MyDatumActivity extends PresenterActivity implements View.OnClickLi
196 198
                 //身份认证
197 199
             case R.id.authentication:
198 200
                 if(rst!=null){
199
-                    Intent intent=new Intent(MyDatumActivity.this,IdentityCardActivity.class);
200
-                    if(rst.is_identity==0){
201
-                        intent.putExtra("myidentcode",0);
202
-                    }else {
203
-                        intent.putExtra("myidentcode",1);
201
+                    if(isover){
202
+                        Intent intent=new Intent(MyDatumActivity.this,IdentityCardActivity.class);
203
+                        if(rst.is_identity==0){
204
+                            intent.putExtra("myidentcode",0);
205
+                        }else {
206
+                            intent.putExtra("myidentcode",1);
207
+                        }
208
+                        startActivity(intent);
204 209
                     }
205
-                    startActivity(intent);
210
+
206 211
                 }
207 212
 
208 213
                 break;

+ 0 - 1
app/src/main/java/com/smileflowpig/money/moneyplatfrom/util/TranslateOperate.java

@@ -34,7 +34,6 @@ public class TranslateOperate {
34 34
     public static TranslateOperate newInstance() {
35 35
         return new TranslateOperate();
36 36
 
37
-
38 37
     }
39 38
 
40 39
 

+ 1 - 1
common/src/main/java/com/smileflowpig/money/common/Common.java

@@ -40,7 +40,7 @@ public class Common {
40 40
         //贷超测试接口
41 41
 //      String API_URL = "http://bw.quyaqu.com/user/";
42 42
         //测试地址
43
-//    String API_URL = "http://182.92.118.1:5220/user/";
43
+     //String API_URL = "http://182.92.118.1:5220/user/";
44 44
 
45 45
         // 最大的上传图片大小860kb
46 46
         long MAX_UPLOAD_IMAGE_LENGTH = 860 * 1024;