jason.lu %!s(int64=6) %!d(string=hai) anos
pai
achega
2e35dc8b2c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;