jason.lu 6 gadi atpakaļ
vecāks
revīzija
2e35dc8b2c
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      sourcecode/h5app/vue/src/views/SecurityVerify.vue

+ 1 - 1
sourcecode/h5app/vue/src/views/SecurityVerify.vue

@@ -175,7 +175,7 @@
                         let userId = localStorage.getItem('frontend-userid');
                         // console.log('----- User Identity -----');
                         BasicFunction.get_data("smartIdentity/list?userId=" + userId, function (resOfIdentList) {
-                            if (resOfIdentList.ret === '10000') {
+                            if (resOfIdentList.ret === '10000' && resOfIdentList.model !== undefined && resOfIdentList.model.list !== undefined && resOfIdentList.model.list.length > 0) {
                                 let useridentity = resOfIdentList.model.list[0];
                                 useridentity.userWxAccount = that.wechat;
                                 useridentity.dormDistrict = that.dorId;