@pisell/pisellos 2.3.136 → 2.3.137
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.
|
@@ -386,23 +386,25 @@ function withH5AuthPrefix(config) {
|
|
|
386
386
|
return nextConfig;
|
|
387
387
|
}
|
|
388
388
|
var h5OnlineStoreConfig = withH5AuthPrefix(onlineStoreConfig);
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
return _objectSpread(_objectSpread({},
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
}),
|
|
399
|
-
phoneCodeRegister: _objectSpread(_objectSpread({}, h5OnlineStoreConfig.phoneCodeRegister), {}, {
|
|
400
|
-
transformParams: function transformParams(params) {
|
|
401
|
-
return _objectSpread(_objectSpread({}, h5OnlineStoreConfig.phoneCodeRegister.transformParams(params)), {}, {
|
|
402
|
-
login_channel: 'kiosk'
|
|
389
|
+
function withKioskSalesChannel(config) {
|
|
390
|
+
return _objectSpread(_objectSpread({}, config), {}, {
|
|
391
|
+
options: function options(params) {
|
|
392
|
+
var options = (typeof config.options === 'function' ? config.options(params) : config.options) || {};
|
|
393
|
+
var headers = typeof options.headers === 'function' ? options.headers(params) : options.headers;
|
|
394
|
+
return _objectSpread(_objectSpread({}, options), {}, {
|
|
395
|
+
headers: _objectSpread(_objectSpread({}, headers), {}, {
|
|
396
|
+
'Sales-Channel': 'kiosk'
|
|
397
|
+
})
|
|
403
398
|
});
|
|
404
399
|
}
|
|
405
|
-
})
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
// Kiosk 复用网店顾客认证接口,通过注册(含验证码登录自动注册)请求头标识会员归属渠道。
|
|
404
|
+
var kioskConfig = _objectSpread(_objectSpread({}, h5OnlineStoreConfig), {}, {
|
|
405
|
+
emailCodeRegister: withKioskSalesChannel(h5OnlineStoreConfig.emailCodeRegister),
|
|
406
|
+
phoneCodeRegister: withKioskSalesChannel(h5OnlineStoreConfig.phoneCodeRegister),
|
|
407
|
+
phoneCodeLogin: withKioskSalesChannel(h5OnlineStoreConfig.phoneCodeLogin)
|
|
406
408
|
});
|
|
407
409
|
|
|
408
410
|
/**
|
|
@@ -305,24 +305,29 @@ function withH5AuthPrefix(config) {
|
|
|
305
305
|
return nextConfig;
|
|
306
306
|
}
|
|
307
307
|
const h5OnlineStoreConfig = withH5AuthPrefix(onlineStoreConfig);
|
|
308
|
+
function withKioskSalesChannel(config) {
|
|
309
|
+
return {
|
|
310
|
+
...config,
|
|
311
|
+
options: params => {
|
|
312
|
+
const options = (typeof config.options === 'function' ? config.options(params) : config.options) || {};
|
|
313
|
+
const headers = typeof options.headers === 'function' ? options.headers(params) : options.headers;
|
|
314
|
+
return {
|
|
315
|
+
...options,
|
|
316
|
+
headers: {
|
|
317
|
+
...headers,
|
|
318
|
+
'Sales-Channel': 'kiosk'
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
}
|
|
308
324
|
|
|
309
|
-
// Kiosk
|
|
325
|
+
// Kiosk 复用网店顾客认证接口,通过注册(含验证码登录自动注册)请求头标识会员归属渠道。
|
|
310
326
|
const kioskConfig = {
|
|
311
327
|
...h5OnlineStoreConfig,
|
|
312
|
-
emailCodeRegister:
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
...h5OnlineStoreConfig.emailCodeRegister.transformParams(params),
|
|
316
|
-
login_channel: 'kiosk'
|
|
317
|
-
})
|
|
318
|
-
},
|
|
319
|
-
phoneCodeRegister: {
|
|
320
|
-
...h5OnlineStoreConfig.phoneCodeRegister,
|
|
321
|
-
transformParams: params => ({
|
|
322
|
-
...h5OnlineStoreConfig.phoneCodeRegister.transformParams(params),
|
|
323
|
-
login_channel: 'kiosk'
|
|
324
|
-
})
|
|
325
|
-
}
|
|
328
|
+
emailCodeRegister: withKioskSalesChannel(h5OnlineStoreConfig.emailCodeRegister),
|
|
329
|
+
phoneCodeRegister: withKioskSalesChannel(h5OnlineStoreConfig.phoneCodeRegister),
|
|
330
|
+
phoneCodeLogin: withKioskSalesChannel(h5OnlineStoreConfig.phoneCodeLogin)
|
|
326
331
|
};
|
|
327
332
|
|
|
328
333
|
/**
|