hylid-bridge 4.0.0-alpha.19 → 4.0.0-alpha.20

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.
@@ -134,9 +134,9 @@ var __generator = this && this.__generator || function (thisArg, body) {
134
134
  import md5 from 'crypto-js/md5';
135
135
  // 钱包密钥,混淆代码前,填入真实的密钥
136
136
  var appSecretMap = {
137
- TOSS: '',
138
- MPAY: '',
139
- ALIPAY: ''
137
+ TOSS: 'Y2RnWk5yJGy4x3pTVp9uI6g18v0XGfQh',
138
+ MPAY: 'aLhI5S6C1JVc4fBX3i8yrZzVCtk',
139
+ ALIPAY: '094d20e403eb8e8bf2a17e0f0ba7fcae'
140
140
  };
141
141
  // 登录接口, 当前MPAY用新的,TOSS本期保留rewards的,后续服务端统一迁移到新的alipayplusvoyager
142
142
  var authLoginApiMap = {
@@ -175,14 +175,14 @@ function randomUUID() {
175
175
  var authLoginPromise;
176
176
  var sendLoginHttp = function sendLoginHttp(params) {
177
177
  return __awaiter(void 0, void 0, void 0, function () {
178
- var sessionIdPreTime, clientKeyPreTime, httpRequest, getAuthParams, saveAuthParams, getAuthCode, getAppId, siteName, AUTH_LOGIN, tokenRes, token, appId, requestParams, authCodeRes, httpParams, signData, res;
178
+ var sessionIdPreTime, clientKeyPreTime, httpRequest, getAuthParams, saveAuthParams, getAuthCode, getAppId, siteName, workspaceId, AUTH_LOGIN, tokenRes, token, appId, requestParams, authCodeRes, httpParams, signData, res;
179
179
  var _a, _b;
180
180
  return __generator(this, function (_c) {
181
181
  switch (_c.label) {
182
182
  case 0:
183
183
  sessionIdPreTime = 60 * 1000;
184
184
  clientKeyPreTime = 3600 * 1000;
185
- httpRequest = params.httpRequest, getAuthParams = params.getAuthParams, saveAuthParams = params.saveAuthParams, getAuthCode = params.getAuthCode, getAppId = params.getAppId, siteName = params.siteName;
185
+ httpRequest = params.httpRequest, getAuthParams = params.getAuthParams, saveAuthParams = params.saveAuthParams, getAuthCode = params.getAuthCode, getAppId = params.getAppId, siteName = params.siteName, workspaceId = params.workspaceId;
186
186
  AUTH_LOGIN = authLoginApiMap[siteName];
187
187
  _c.label = 1;
188
188
  case 1:
@@ -213,6 +213,7 @@ var sendLoginHttp = function sendLoginHttp(params) {
213
213
  };
214
214
  signData = httpSign(httpParams, siteName);
215
215
  return [4 /*yield*/, httpRequest(__assign(__assign({}, httpParams), {
216
+ workspaceId: workspaceId,
216
217
  headers: __assign({}, signData)
217
218
  }))];
218
219
  case 5: