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
@@ -1,3 +1,5 @@
1
+ 6.6.5
2
+ 1、mongoaccountservice增加登录时间和ip
1
3
  6.5.8
2
4
  1、修改编译bug
3
5
  6.5.7
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cgserver",
3
- "version": "6.6.4",
3
+ "version": "6.6.5",
4
4
  "author": "trojan",
5
5
  "type": "commonjs",
6
6
  "description": "free for all.Websocket or Http",