@pisell/pisellos 0.0.345 → 0.0.347
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/dist/solution/RegisterAndLogin/config.js +4 -2
- package/dist/solution/RegisterAndLogin/index.js +4 -2
- package/dist/solution/RegisterAndLogin/types.d.ts +1 -0
- package/lib/solution/RegisterAndLogin/config.js +4 -2
- package/lib/solution/RegisterAndLogin/index.js +1 -0
- package/lib/solution/RegisterAndLogin/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -156,7 +156,8 @@ var onlineStoreConfig = {
|
|
|
156
156
|
method: 'POST',
|
|
157
157
|
transformParams: function transformParams(params) {
|
|
158
158
|
return {
|
|
159
|
-
login_channel: params.login_channel
|
|
159
|
+
login_channel: params.login_channel,
|
|
160
|
+
guest_code: params.guest_code
|
|
160
161
|
};
|
|
161
162
|
}
|
|
162
163
|
},
|
|
@@ -176,7 +177,8 @@ var onlineStoreConfig = {
|
|
|
176
177
|
transformParams: function transformParams(params) {
|
|
177
178
|
return {
|
|
178
179
|
email: params.email,
|
|
179
|
-
code: params.code
|
|
180
|
+
code: params.code,
|
|
181
|
+
action: params.action
|
|
180
182
|
};
|
|
181
183
|
}
|
|
182
184
|
},
|
|
@@ -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: {
|
|
@@ -146,7 +147,8 @@ var onlineStoreConfig = {
|
|
|
146
147
|
method: "GET",
|
|
147
148
|
transformParams: (params) => ({
|
|
148
149
|
email: params.email,
|
|
149
|
-
code: params.code
|
|
150
|
+
code: params.code,
|
|
151
|
+
action: params.action
|
|
150
152
|
})
|
|
151
153
|
},
|
|
152
154
|
checkMobileCode: {
|
|
@@ -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
|
}
|