@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.
@@ -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 = 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
  }
@@ -318,6 +318,7 @@ export interface CheckEmailCodeParams {
318
318
  email: string;
319
319
  shop_id: number;
320
320
  code: string;
321
+ action: string;
321
322
  }
322
323
  /**
323
324
  * 检查手机验证码是否有效参数接口
@@ -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
  }
@@ -318,6 +318,7 @@ export interface CheckEmailCodeParams {
318
318
  email: string;
319
319
  shop_id: number;
320
320
  code: string;
321
+ action: string;
321
322
  }
322
323
  /**
323
324
  * 检查手机验证码是否有效参数接口
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.347",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",