cgserver 7.5.1447 → 7.6.1961
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.
|
@@ -132,7 +132,7 @@ class AccountService extends MongoBaseService_1.MongoBaseService {
|
|
|
132
132
|
if (am) {
|
|
133
133
|
return am;
|
|
134
134
|
}
|
|
135
|
-
am = await this.get(null, { phone: phone });
|
|
135
|
+
am = await this.get(null, { phone: phone + "" });
|
|
136
136
|
if (am) {
|
|
137
137
|
CacheTool_1.GCacheTool.add(key, am, this._account_cache_time_sec);
|
|
138
138
|
}
|
|
@@ -152,6 +152,8 @@ class AccountService extends MongoBaseService_1.MongoBaseService {
|
|
|
152
152
|
rs.errcode = _error_1.EErrorCode.Wrong_Params;
|
|
153
153
|
return rs;
|
|
154
154
|
}
|
|
155
|
+
unionid += "";
|
|
156
|
+
openid += "";
|
|
155
157
|
let login_rs = await this._login(unionid, openid, from);
|
|
156
158
|
rs.account = login_rs.account;
|
|
157
159
|
rs.errcode = login_rs.errcode;
|
|
@@ -287,6 +289,8 @@ class AccountService extends MongoBaseService_1.MongoBaseService {
|
|
|
287
289
|
return rs;
|
|
288
290
|
}
|
|
289
291
|
async _login(unionid, openid, from) {
|
|
292
|
+
unionid += "";
|
|
293
|
+
openid += "";
|
|
290
294
|
let rs = { errcode: null, account: null };
|
|
291
295
|
if (from == ini_1.EAccountFrom.QQ
|
|
292
296
|
|| from == ini_1.EAccountFrom.WeChat
|