|
@@ -175,7 +175,7 @@
|
|
let userId = localStorage.getItem('frontend-userid');
|
|
let userId = localStorage.getItem('frontend-userid');
|
|
// console.log('----- User Identity -----');
|
|
// console.log('----- User Identity -----');
|
|
BasicFunction.get_data("smartIdentity/list?userId=" + userId, function (resOfIdentList) {
|
|
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];
|
|
let useridentity = resOfIdentList.model.list[0];
|
|
useridentity.userWxAccount = that.wechat;
|
|
useridentity.userWxAccount = that.wechat;
|
|
useridentity.dormDistrict = that.dorId;
|
|
useridentity.dormDistrict = that.dorId;
|