@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.
@@ -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
  },
@@ -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 = 16;
335
+ _context4.next = 17;
334
336
  return this.core.effects.emit(RegisterAndLoginHooks.onInited, {});
335
- case 16:
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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "0.0.345",
4
+ "version": "0.0.346",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",