@pisell/pisellos 0.0.345 → 0.0.346
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.
|
@@ -329,10 +329,12 @@ export var RegisterAndLoginImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
329
329
|
_context4.next = 13;
|
|
330
330
|
return this.restoreLoginState();
|
|
331
331
|
case 13:
|
|
332
|
+
// 预先调用获取区号的方法,初始内存缓存
|
|
333
|
+
this.getCountries();
|
|
332
334
|
console.log('[RegisterAndLogin] 初始化完成');
|
|
333
|
-
_context4.next =
|
|
335
|
+
_context4.next = 17;
|
|
334
336
|
return this.core.effects.emit(RegisterAndLoginHooks.onInited, {});
|
|
335
|
-
case
|
|
337
|
+
case 17:
|
|
336
338
|
case "end":
|
|
337
339
|
return _context4.stop();
|
|
338
340
|
}
|
|
@@ -130,7 +130,8 @@ var onlineStoreConfig = {
|
|
|
130
130
|
url: "/auth/guest/login",
|
|
131
131
|
method: "POST",
|
|
132
132
|
transformParams: (params) => ({
|
|
133
|
-
login_channel: params.login_channel
|
|
133
|
+
login_channel: params.login_channel,
|
|
134
|
+
guest_code: params.guest_code
|
|
134
135
|
})
|
|
135
136
|
},
|
|
136
137
|
checkEmailExists: {
|
|
@@ -205,6 +205,7 @@ var RegisterAndLoginImpl = class extends import_BaseModule.BaseModule {
|
|
|
205
205
|
}
|
|
206
206
|
this.apiCaller = (0, import_config.createApiCaller)(this.request, this.channel);
|
|
207
207
|
await this.restoreLoginState();
|
|
208
|
+
this.getCountries();
|
|
208
209
|
console.log("[RegisterAndLogin] 初始化完成");
|
|
209
210
|
await this.core.effects.emit(import_types.RegisterAndLoginHooks.onInited, {});
|
|
210
211
|
}
|