fix: phone null bug

parent d785d436
...@@ -196,7 +196,9 @@ export class AppService implements OnInit { ...@@ -196,7 +196,9 @@ export class AppService implements OnInit {
User.wechat = data['wechat']; User.wechat = data['wechat'];
User.comment = data['comment']; User.comment = data['comment'];
User.date_expired = data['date_expired']; User.date_expired = data['date_expired'];
if (data['phone']) {
User.phone = data['phone'].toString(); User.phone = data['phone'].toString();
}
User.logined = data['logined']; User.logined = data['logined'];
this._logger.debug(User); this._logger.debug(User);
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment