Browse Source

3.01个人资料

小狼 5 years ago
parent
commit
b41b457b6a

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

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

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

48
     private String alipay_id;
48
     private String alipay_id;
49
     private String real_name;
49
     private String real_name;
50
     private DataHomeBean.RstBean rst;
50
     private DataHomeBean.RstBean rst;
51
+    private boolean isover=false;
51
 
52
 
52
     @Override
53
     @Override
53
     protected boolean isNeedNotch() {
54
     protected boolean isNeedNotch() {
97
                 }else {
98
                 }else {
98
                     cardphone.setText("已认证");
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
                 if(rst.is_contact==0){
106
                 if(rst.is_contact==0){
106
                     people.setText("去添加");
107
                     people.setText("去添加");
107
                 }else {
108
                 }else {
151
                             identycard.setText(s);
152
                             identycard.setText(s);
152
                             authentication.setClickable(false);
153
                             authentication.setClickable(false);
153
                         }
154
                         }
155
+
154
                         if(rst.alipay_id!=null){
156
                         if(rst.alipay_id!=null){
155
                             if(!rst.alipay_id.equals("")){
157
                             if(!rst.alipay_id.equals("")){
156
                                 String alipay_id = rst.alipay_id;
158
                                 String alipay_id = rst.alipay_id;
196
                 //身份认证
198
                 //身份认证
197
             case R.id.authentication:
199
             case R.id.authentication:
198
                 if(rst!=null){
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
                 break;
213
                 break;

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

34
     public static TranslateOperate newInstance() {
34
     public static TranslateOperate newInstance() {
35
         return new TranslateOperate();
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
         //贷超测试接口
40
         //贷超测试接口
41
 //      String API_URL = "http://bw.quyaqu.com/user/";
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
         // 最大的上传图片大小860kb
45
         // 最大的上传图片大小860kb
46
         long MAX_UPLOAD_IMAGE_LENGTH = 860 * 1024;
46
         long MAX_UPLOAD_IMAGE_LENGTH = 860 * 1024;