cgserver 6.6.4 → 6.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -280,6 +280,9 @@ class AccountService extends MongoBaseService_1.MongoBaseService {
|
|
|
280
280
|
await MongoUserService_1.GUserSer.updateBaseInfoByAccount(account.id, extra_info.nickname, extra_info.sex, extra_info.logo);
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
+
account.login_time = Date.now();
|
|
284
|
+
account.login_ip = ip;
|
|
285
|
+
this.updateOne({ login_time: account.login_time, login_ip: account.login_ip }, { id: account.id });
|
|
283
286
|
rs.account = account;
|
|
284
287
|
return rs;
|
|
285
288
|
}
|