@smart100/spu-web-plugin 1.0.19 → 1.0.21

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.
@@ -1,4 +1,4 @@
1
- var version = "1.0.19";
1
+ var version = "1.0.21";
2
2
 
3
3
  /** Detect free variable `global` from Node.js. */
4
4
  var freeGlobal$2 = typeof global == 'object' && global && global.Object === Object && global;
@@ -8368,6 +8368,12 @@ var Core = /*#__PURE__*/function () {
8368
8368
  }
8369
8369
  return getSpuContainerType;
8370
8370
  }()
8371
+ }, {
8372
+ key: "checkInAppSpuWebview",
8373
+ value: function checkInAppSpuWebview() {
8374
+ var _window3;
8375
+ return !!((_window3 = window) !== null && _window3 !== void 0 && (_window3 = _window3.aPaaS) !== null && _window3 !== void 0 && _window3.getPhoto);
8376
+ }
8371
8377
  }]);
8372
8378
  return Core;
8373
8379
  }();
@@ -8381,233 +8387,6 @@ var Module = {
8381
8387
  getSpuContainerType: core$1.getSpuContainerType.bind(core$1)
8382
8388
  };
8383
8389
 
8384
- var createAxiosInstance$1 = function createAxiosInstance() {
8385
- var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'spu';
8386
- var options = arguments.length > 1 ? arguments[1] : undefined;
8387
- var axiosInstance = axios$3.create({
8388
- baseURL: type === 'spu' ? "/api/".concat(options.modulekey, "/").concat(options.moduleversion) : ''
8389
- // baseURL: '',
8390
- // timeout: 36000000
8391
- // withCredentials: true, // 不能开启 影响ali oss
8392
- // headers: {
8393
- // // 'Content-Type': 'application/json;charset=UTF-8',
8394
- // // 'app_id': '100'
8395
- // }
8396
- });
8397
-
8398
- axiosInstance.interceptors.request.use( /*#__PURE__*/function () {
8399
- var _ref = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee(config) {
8400
- var isShowLoading, isSendToken, loginState, token, moduleData, isSendTecode, tecode;
8401
- return _regeneratorRuntime$1().wrap(function _callee$(_context) {
8402
- while (1) switch (_context.prev = _context.next) {
8403
- case 0:
8404
- // const isShowLoading = typeof config?.isShowLoading !== 'undefined' ? config.isShowLoading : true
8405
- // console.error(444444)
8406
- // console.log(config)
8407
- isShowLoading = get$1(config, 'isShowLoading', true);
8408
- isShowLoading && loadding$1.open();
8409
- isSendToken = get$1(config, 'isSendToken', true);
8410
- if (!isSendToken) {
8411
- _context.next = 16;
8412
- break;
8413
- }
8414
- // 请求接口前校验是否过期 如果过期先刷新token
8415
- loginState = getLoginState();
8416
- if (!(config.url !== '/api/auth/refreshtoken' && !loginState.islogin && loginState.type === 2 && loginState.role !== 'center')) {
8417
- _context.next = 14;
8418
- break;
8419
- }
8420
- _context.prev = 6;
8421
- _context.next = 9;
8422
- return updateToken();
8423
- case 9:
8424
- _context.next = 14;
8425
- break;
8426
- case 11:
8427
- _context.prev = 11;
8428
- _context.t0 = _context["catch"](6);
8429
- console.error(_context.t0);
8430
- case 14:
8431
- token = getToken();
8432
- if (config !== null && config !== void 0 && config.headers && token) {
8433
- config.headers.token = token;
8434
- }
8435
- case 16:
8436
- if (!(type === 'spu' && config.modulekey)) {
8437
- _context.next = 21;
8438
- break;
8439
- }
8440
- _context.next = 19;
8441
- return core$1.getModuleData(config.modulekey);
8442
- case 19:
8443
- moduleData = _context.sent;
8444
- if (moduleData.data) {
8445
- config.baseURL = "/api/".concat(config.modulekey, "/").concat(moduleData.data.moduleversion);
8446
- } else {
8447
- console.error(moduleData.errorMsg);
8448
- config.baseURL = "/api/".concat(config.modulekey, "/v?.?");
8449
- }
8450
- case 21:
8451
- // 平台的业务接口开了开发者模式后,header带上debug方便查看接口的ide日志
8452
- if (type !== 'spu' && urlquery.isdebugger && config.url.indexOf('api/teapi/dy-biz/') > -1) {
8453
- if (config !== null && config !== void 0 && config.headers) {
8454
- config.headers.debug = 'true';
8455
- }
8456
- }
8457
- if (type !== 'spu') {
8458
- isSendTecode = get$1(config, 'isSendTecode', false);
8459
- if (isSendTecode) {
8460
- tecode = getTecode();
8461
- if (config !== null && config !== void 0 && config.headers && tecode) {
8462
- config.headers.tecode = tecode;
8463
- }
8464
- }
8465
- }
8466
- return _context.abrupt("return", config);
8467
- case 24:
8468
- case "end":
8469
- return _context.stop();
8470
- }
8471
- }, _callee, null, [[6, 11]]);
8472
- }));
8473
- return function (_x) {
8474
- return _ref.apply(this, arguments);
8475
- };
8476
- }(), function (error) {
8477
- return Promise.reject(error);
8478
- });
8479
- axiosInstance.interceptors.response.use(function (res) {
8480
- // debugger
8481
- var isShowLoading = get$1(res, 'config.isShowLoading', true);
8482
- isShowLoading && loadding$1.close();
8483
- var realRes = {
8484
- code: 404,
8485
- data: '',
8486
- msg: '',
8487
- message: ''
8488
- };
8489
- if (type === 'spu') {
8490
- if (res.data.code === 200) {
8491
- // return res.data
8492
- realRes = {
8493
- code: res.data.code,
8494
- data: res.data.data,
8495
- msg: res.data.msg,
8496
- message: res.data.msg
8497
- };
8498
- return realRes;
8499
- } else {
8500
- realRes = {
8501
- code: res.data.code,
8502
- data: res.data.data,
8503
- msg: res.data.msg || '网络异常,请稍后重试。',
8504
- message: res.data.msg || '网络异常,请稍后重试。'
8505
- };
8506
- // const isShowErrorMessage = get(res, 'config.isShowErrorMessage', true)
8507
- // isShowErrorMessage && Message.error(realRes.msg)
8508
- return Promise.reject(realRes);
8509
- }
8510
- } else if (type === 'normal') {
8511
- var _res$data, _res$data2, _res$data3;
8512
- realRes = {
8513
- code: res.status || 200,
8514
- data: ((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.resp_data) || res.data,
8515
- msg: ((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.error_code) || '',
8516
- message: ((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.error_code) || ''
8517
- };
8518
- return realRes;
8519
- }
8520
- }, function (err) {
8521
- // err: AxiosError
8522
- // console.log(err)
8523
- // debugger
8524
- var isShowLoading = get$1(err, 'config.isShowLoading', true);
8525
- isShowLoading && loadding$1.close();
8526
- // console.log(err)
8527
- // debugger
8528
- var msg = '';
8529
- if (type === 'spu') {
8530
- msg = get$1(err, 'response.data.msg', '');
8531
- } else {
8532
- msg = get$1(err, 'response.data.error_code', '');
8533
- }
8534
- if (msg) {
8535
- err.message = msg;
8536
- } else {
8537
- var _err$response;
8538
- err.message = ((_err$response = err.response) === null || _err$response === void 0 ? void 0 : _err$response.statusText) || err.message || '网络异常,请稍后重试。';
8539
- }
8540
- err.msg = err.message;
8541
- return Promise.reject(err);
8542
- });
8543
- return axiosInstance;
8544
- };
8545
- var spuAxios = null;
8546
- var normalAxios$1 = null;
8547
- function installAxios(options) {
8548
- spuAxios = createAxiosInstance$1('spu', options);
8549
- normalAxios$1 = createAxiosInstance$1('normal', options);
8550
- }
8551
-
8552
- var CloudServ = /*#__PURE__*/function () {
8553
- function CloudServ() {
8554
- _classCallCheck$1(this, CloudServ);
8555
- _defineProperty$1(this, "CLOUD_SERVE_KEY", 'cloudserv');
8556
- _defineProperty$1(this, "cacheStorage", null);
8557
- }
8558
- _createClass$1(CloudServ, [{
8559
- key: "get",
8560
- value: function get() {
8561
- var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'storage';
8562
- if (this.cacheStorage) {
8563
- return this.cacheStorage[key] || null;
8564
- }
8565
- var storageStr = lsProxy.getItem(this.CLOUD_SERVE_KEY);
8566
- if (!storageStr) {
8567
- return null;
8568
- }
8569
- var storage = JSON.parse(storageStr);
8570
- this.cacheStorage = storage;
8571
- return storage[key];
8572
- }
8573
- }, {
8574
- key: "set",
8575
- value: function set(storage) {
8576
- if (_typeof(storage) === 'object') {
8577
- this.cacheStorage = storage;
8578
- storage = JSON.stringify(storage);
8579
- }
8580
- lsProxy.setItem(this.CLOUD_SERVE_KEY, storage);
8581
- }
8582
- }, {
8583
- key: "remove",
8584
- value: function remove() {
8585
- lsProxy.removeItem(this.CLOUD_SERVE_KEY);
8586
- }
8587
- }, {
8588
- key: "getProvider",
8589
- value: function getProvider() {
8590
- var sign = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'storage';
8591
- var storage = this.get(sign);
8592
- if (!storage) {
8593
- return null;
8594
- }
8595
- var name = storage.cloudserv_storage_provider;
8596
- return {
8597
- name: name,
8598
- isAliyun: name === 'aliyun',
8599
- isAzure: name === 'azure',
8600
- isAwss3: name === 'awss3',
8601
- isHuawei: name === 'huawei',
8602
- isMinio: name === 'minio'
8603
- };
8604
- }
8605
- }]);
8606
- return CloudServ;
8607
- }();
8608
- var cloudServ = new CloudServ();
8609
- var getCloudServ = cloudServ.get.bind(cloudServ);
8610
-
8611
8390
  var cryptoJs = {exports: {}};
8612
8391
 
8613
8392
  function commonjsRequire(path) {
@@ -16083,6 +15862,256 @@ function decrypt(base64) {
16083
15862
  return result;
16084
15863
  }
16085
15864
 
15865
+ // _encrydata
15866
+ var normalizeEncryData = function normalizeEncryData(response) {
15867
+ if (response.data && response.data._encrydata && typeof response.data._encrydata === 'string') {
15868
+ var res = decrypt(response.data._encrydata);
15869
+ try {
15870
+ var resJson = JSON.parse(res);
15871
+ response.data = _objectSpread2$1({}, resJson);
15872
+ } catch (e) {
15873
+ response.data = res;
15874
+ }
15875
+ }
15876
+ if (response.body && response.body._encrydata && typeof response.body._encrydata === 'string') {
15877
+ var _res = decrypt(response.body._encrydata);
15878
+ try {
15879
+ var _resJson = JSON.parse(_res);
15880
+ response.body = _objectSpread2$1({}, _resJson);
15881
+ } catch (e) {
15882
+ response.body = _res;
15883
+ }
15884
+ }
15885
+ return response;
15886
+ };
15887
+ var createAxiosInstance$1 = function createAxiosInstance() {
15888
+ var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'spu';
15889
+ var options = arguments.length > 1 ? arguments[1] : undefined;
15890
+ var axiosInstance = axios$3.create({
15891
+ baseURL: type === 'spu' ? "/api/".concat(options.modulekey, "/").concat(options.moduleversion) : ''
15892
+ // baseURL: '',
15893
+ // timeout: 36000000
15894
+ // withCredentials: true, // 不能开启 影响ali oss
15895
+ // headers: {
15896
+ // // 'Content-Type': 'application/json;charset=UTF-8',
15897
+ // // 'app_id': '100'
15898
+ // }
15899
+ });
15900
+
15901
+ axiosInstance.interceptors.request.use( /*#__PURE__*/function () {
15902
+ var _ref = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee(config) {
15903
+ var isShowLoading, isSendToken, loginState, token, moduleData, isSendTecode, tecode;
15904
+ return _regeneratorRuntime$1().wrap(function _callee$(_context) {
15905
+ while (1) switch (_context.prev = _context.next) {
15906
+ case 0:
15907
+ // const isShowLoading = typeof config?.isShowLoading !== 'undefined' ? config.isShowLoading : true
15908
+ // console.error(444444)
15909
+ // console.log(config)
15910
+ isShowLoading = get$1(config, 'isShowLoading', true);
15911
+ isShowLoading && loadding$1.open();
15912
+ isSendToken = get$1(config, 'isSendToken', true);
15913
+ if (!isSendToken) {
15914
+ _context.next = 16;
15915
+ break;
15916
+ }
15917
+ // 请求接口前校验是否过期 如果过期先刷新token
15918
+ loginState = getLoginState();
15919
+ if (!(config.url !== '/api/auth/refreshtoken' && !loginState.islogin && loginState.type === 2 && loginState.role !== 'center')) {
15920
+ _context.next = 14;
15921
+ break;
15922
+ }
15923
+ _context.prev = 6;
15924
+ _context.next = 9;
15925
+ return updateToken();
15926
+ case 9:
15927
+ _context.next = 14;
15928
+ break;
15929
+ case 11:
15930
+ _context.prev = 11;
15931
+ _context.t0 = _context["catch"](6);
15932
+ console.error(_context.t0);
15933
+ case 14:
15934
+ token = getToken();
15935
+ if (config !== null && config !== void 0 && config.headers && token) {
15936
+ config.headers.token = token;
15937
+ }
15938
+ case 16:
15939
+ if (!(type === 'spu' && config.modulekey)) {
15940
+ _context.next = 21;
15941
+ break;
15942
+ }
15943
+ _context.next = 19;
15944
+ return core$1.getModuleData(config.modulekey);
15945
+ case 19:
15946
+ moduleData = _context.sent;
15947
+ if (moduleData.data) {
15948
+ config.baseURL = "/api/".concat(config.modulekey, "/").concat(moduleData.data.moduleversion);
15949
+ } else {
15950
+ console.error(moduleData.errorMsg);
15951
+ config.baseURL = "/api/".concat(config.modulekey, "/v?.?");
15952
+ }
15953
+ case 21:
15954
+ // 平台的业务接口开了开发者模式后,header带上debug方便查看接口的ide日志
15955
+ if (type !== 'spu' && urlquery.isdebugger && config.url.indexOf('api/teapi/dy-biz/') > -1) {
15956
+ if (config !== null && config !== void 0 && config.headers) {
15957
+ config.headers.debug = 'true';
15958
+ }
15959
+ }
15960
+ if (type !== 'spu') {
15961
+ isSendTecode = get$1(config, 'isSendTecode', false);
15962
+ if (isSendTecode) {
15963
+ tecode = getTecode();
15964
+ if (config !== null && config !== void 0 && config.headers && tecode) {
15965
+ config.headers.tecode = tecode;
15966
+ }
15967
+ }
15968
+ }
15969
+ return _context.abrupt("return", config);
15970
+ case 24:
15971
+ case "end":
15972
+ return _context.stop();
15973
+ }
15974
+ }, _callee, null, [[6, 11]]);
15975
+ }));
15976
+ return function (_x) {
15977
+ return _ref.apply(this, arguments);
15978
+ };
15979
+ }(), function (error) {
15980
+ return Promise.reject(error);
15981
+ });
15982
+ axiosInstance.interceptors.response.use(function (res) {
15983
+ // debugger
15984
+ var isShowLoading = get$1(res, 'config.isShowLoading', true);
15985
+ isShowLoading && loadding$1.close();
15986
+ normalizeEncryData(res);
15987
+ var realRes = {
15988
+ code: 404,
15989
+ data: '',
15990
+ msg: '',
15991
+ message: ''
15992
+ };
15993
+ if (type === 'spu') {
15994
+ if (res.data.code === 200) {
15995
+ // return res.data
15996
+ realRes = {
15997
+ code: res.data.code,
15998
+ data: res.data.data,
15999
+ msg: res.data.msg,
16000
+ message: res.data.msg
16001
+ };
16002
+ return realRes;
16003
+ } else {
16004
+ realRes = {
16005
+ code: res.data.code,
16006
+ data: res.data.data,
16007
+ msg: res.data.msg || '网络异常,请稍后重试。',
16008
+ message: res.data.msg || '网络异常,请稍后重试。'
16009
+ };
16010
+ // const isShowErrorMessage = get(res, 'config.isShowErrorMessage', true)
16011
+ // isShowErrorMessage && Message.error(realRes.msg)
16012
+ return Promise.reject(realRes);
16013
+ }
16014
+ } else if (type === 'normal') {
16015
+ var _res$data, _res$data2, _res$data3;
16016
+ realRes = {
16017
+ code: res.status || 200,
16018
+ data: ((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.resp_data) || res.data,
16019
+ msg: ((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.error_code) || '',
16020
+ message: ((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.error_code) || ''
16021
+ };
16022
+ return realRes;
16023
+ }
16024
+ }, function (err) {
16025
+ // err: AxiosError
16026
+ // console.log(err)
16027
+ // debugger
16028
+ var isShowLoading = get$1(err, 'config.isShowLoading', true);
16029
+ isShowLoading && loadding$1.close();
16030
+ // console.log(err)
16031
+ // debugger
16032
+ var msg = '';
16033
+ if (type === 'spu') {
16034
+ msg = get$1(err, 'response.data.msg', '');
16035
+ } else {
16036
+ msg = get$1(err, 'response.data.error_code', '');
16037
+ }
16038
+ if (msg) {
16039
+ err.message = msg;
16040
+ } else {
16041
+ var _err$response;
16042
+ err.message = ((_err$response = err.response) === null || _err$response === void 0 ? void 0 : _err$response.statusText) || err.message || '网络异常,请稍后重试。';
16043
+ }
16044
+ err.msg = err.message;
16045
+ return Promise.reject(err);
16046
+ });
16047
+ return axiosInstance;
16048
+ };
16049
+ var spuAxios = null;
16050
+ var normalAxios$1 = null;
16051
+ function installAxios(options) {
16052
+ spuAxios = createAxiosInstance$1('spu', options);
16053
+ normalAxios$1 = createAxiosInstance$1('normal', options);
16054
+ }
16055
+
16056
+ var CloudServ = /*#__PURE__*/function () {
16057
+ function CloudServ() {
16058
+ _classCallCheck$1(this, CloudServ);
16059
+ _defineProperty$1(this, "CLOUD_SERVE_KEY", 'cloudserv');
16060
+ _defineProperty$1(this, "cacheStorage", null);
16061
+ }
16062
+ _createClass$1(CloudServ, [{
16063
+ key: "get",
16064
+ value: function get() {
16065
+ var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'storage';
16066
+ if (this.cacheStorage) {
16067
+ return this.cacheStorage[key] || null;
16068
+ }
16069
+ var storageStr = lsProxy.getItem(this.CLOUD_SERVE_KEY);
16070
+ if (!storageStr) {
16071
+ return null;
16072
+ }
16073
+ var storage = JSON.parse(storageStr);
16074
+ this.cacheStorage = storage;
16075
+ return storage[key];
16076
+ }
16077
+ }, {
16078
+ key: "set",
16079
+ value: function set(storage) {
16080
+ if (_typeof(storage) === 'object') {
16081
+ this.cacheStorage = storage;
16082
+ storage = JSON.stringify(storage);
16083
+ }
16084
+ lsProxy.setItem(this.CLOUD_SERVE_KEY, storage);
16085
+ }
16086
+ }, {
16087
+ key: "remove",
16088
+ value: function remove() {
16089
+ lsProxy.removeItem(this.CLOUD_SERVE_KEY);
16090
+ }
16091
+ }, {
16092
+ key: "getProvider",
16093
+ value: function getProvider() {
16094
+ var sign = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'storage';
16095
+ var storage = this.get(sign);
16096
+ if (!storage) {
16097
+ return null;
16098
+ }
16099
+ var name = storage.cloudserv_storage_provider;
16100
+ return {
16101
+ name: name,
16102
+ isAliyun: name === 'aliyun',
16103
+ isAzure: name === 'azure',
16104
+ isAwss3: name === 'awss3',
16105
+ isHuawei: name === 'huawei',
16106
+ isMinio: name === 'minio'
16107
+ };
16108
+ }
16109
+ }]);
16110
+ return CloudServ;
16111
+ }();
16112
+ var cloudServ = new CloudServ();
16113
+ var getCloudServ = cloudServ.get.bind(cloudServ);
16114
+
16086
16115
  var TenantSetting = /*#__PURE__*/function () {
16087
16116
  function TenantSetting() {
16088
16117
  _classCallCheck$1(this, TenantSetting);
@@ -16390,13 +16419,13 @@ function getAndSetUserInfo() {
16390
16419
  return _getAndSetUserInfo.apply(this, arguments);
16391
16420
  }
16392
16421
  function _getAndSetUserInfo() {
16393
- _getAndSetUserInfo = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee5() {
16422
+ _getAndSetUserInfo = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee6() {
16394
16423
  var accountinfo;
16395
- return _regeneratorRuntime$1().wrap(function _callee5$(_context5) {
16396
- while (1) switch (_context5.prev = _context5.next) {
16424
+ return _regeneratorRuntime$1().wrap(function _callee6$(_context6) {
16425
+ while (1) switch (_context6.prev = _context6.next) {
16397
16426
  case 0:
16398
- _context5.prev = 0;
16399
- _context5.next = 3;
16427
+ _context6.prev = 0;
16428
+ _context6.next = 3;
16400
16429
  return normalAxios$1.post('/api/teapi/rolepermission/account/getaccountinfo', {
16401
16430
  positionid: getUser('positioncode') || '',
16402
16431
  deviceinfo: '',
@@ -16410,22 +16439,22 @@ function _getAndSetUserInfo() {
16410
16439
  }
16411
16440
  });
16412
16441
  case 3:
16413
- accountinfo = _context5.sent;
16442
+ accountinfo = _context6.sent;
16414
16443
  if (accountinfo) {
16415
16444
  setUser(accountinfo);
16416
16445
  }
16417
- _context5.next = 11;
16446
+ _context6.next = 11;
16418
16447
  break;
16419
16448
  case 7:
16420
- _context5.prev = 7;
16421
- _context5.t0 = _context5["catch"](0);
16422
- console.error(_context5.t0);
16449
+ _context6.prev = 7;
16450
+ _context6.t0 = _context6["catch"](0);
16451
+ console.error(_context6.t0);
16423
16452
  console.warn('获取用户信息失败,当前您登录的帐号可能为非标准租户帐号。');
16424
16453
  case 11:
16425
16454
  case "end":
16426
- return _context5.stop();
16455
+ return _context6.stop();
16427
16456
  }
16428
- }, _callee5, null, [[0, 7]]);
16457
+ }, _callee6, null, [[0, 7]]);
16429
16458
  }));
16430
16459
  return _getAndSetUserInfo.apply(this, arguments);
16431
16460
  }
@@ -16458,19 +16487,19 @@ function getAndSetTenant(_x) {
16458
16487
  return _getAndSetTenant.apply(this, arguments);
16459
16488
  }
16460
16489
  function _getAndSetTenant() {
16461
- _getAndSetTenant = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee6(tenantcode) {
16490
+ _getAndSetTenant = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee7(tenantcode) {
16462
16491
  var tenantsRes, tenant, normalizedTenant;
16463
- return _regeneratorRuntime$1().wrap(function _callee6$(_context6) {
16464
- while (1) switch (_context6.prev = _context6.next) {
16492
+ return _regeneratorRuntime$1().wrap(function _callee7$(_context7) {
16493
+ while (1) switch (_context7.prev = _context7.next) {
16465
16494
  case 0:
16466
- _context6.prev = 0;
16467
- _context6.next = 3;
16495
+ _context7.prev = 0;
16496
+ _context7.next = 3;
16468
16497
  return normalAxios$1.get('/api/auth/tenantlist', {}).then(function (res) {
16469
16498
  var _res$data;
16470
16499
  return res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.tenants;
16471
16500
  });
16472
16501
  case 3:
16473
- tenantsRes = _context6.sent;
16502
+ tenantsRes = _context7.sent;
16474
16503
  tenant = null;
16475
16504
  if (tenantsRes !== null && tenantsRes !== void 0 && tenantsRes.length) {
16476
16505
  if (!tenantcode) {
@@ -16491,18 +16520,18 @@ function _getAndSetTenant() {
16491
16520
  cloudServ.set(normalizedTenant);
16492
16521
  }
16493
16522
  }
16494
- _context6.next = 13;
16523
+ _context7.next = 13;
16495
16524
  break;
16496
16525
  case 9:
16497
- _context6.prev = 9;
16498
- _context6.t0 = _context6["catch"](0);
16499
- console.error(_context6.t0);
16526
+ _context7.prev = 9;
16527
+ _context7.t0 = _context7["catch"](0);
16528
+ console.error(_context7.t0);
16500
16529
  console.warn('获取租户信息失败,当前您登录的帐号可能为非标准租户帐号。');
16501
16530
  case 13:
16502
16531
  case "end":
16503
- return _context6.stop();
16532
+ return _context7.stop();
16504
16533
  }
16505
- }, _callee6, null, [[0, 9]]);
16534
+ }, _callee7, null, [[0, 9]]);
16506
16535
  }));
16507
16536
  return _getAndSetTenant.apply(this, arguments);
16508
16537
  }
@@ -16599,8 +16628,10 @@ function startRefreshtoken() {
16599
16628
  // 获取 spu 容器 token
16600
16629
  var getSPUContainerToken = function getSPUContainerToken() {
16601
16630
  return new Promise(function (resolve, reject) {
16602
- var _window$aPaaS;
16603
- if ((_window$aPaaS = window.aPaaS) !== null && _window$aPaaS !== void 0 && _window$aPaaS.getToken) {
16631
+ var _window$aPaaS, _window$aPaaS2;
16632
+ // 在spuwebview中
16633
+ if (core$1.checkInAppSpuWebview() && (_window$aPaaS = window.aPaaS) !== null && _window$aPaaS !== void 0 && _window$aPaaS.getToken) {
16634
+ console.log('in App spuwebview');
16604
16635
  window.aPaaS.getToken(function (res) {
16605
16636
  console.log('window.aPaaS.getToken success', res);
16606
16637
  var token = res === null || res === void 0 ? void 0 : res.token;
@@ -16617,6 +16648,49 @@ var getSPUContainerToken = function getSPUContainerToken() {
16617
16648
  resolve(null);
16618
16649
  }
16619
16650
  });
16651
+ } else if ((_window$aPaaS2 = window.aPaaS) !== null && _window$aPaaS2 !== void 0 && _window$aPaaS2.getToken && globalOptions.modulekey === 'portalEngine') {
16652
+ console.log('in App interactivewebview');
16653
+ // 兼容门户引擎在 interactivewebview 的情况
16654
+ var u = navigator.userAgent;
16655
+ var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1;
16656
+ if (isAndroid) {
16657
+ console.log('in Android, use window.aPaaS.getToken and window.getTokenComplete');
16658
+ window.getTokenComplete = function (res) {
16659
+ console.log('window.getTokenComplete success', res);
16660
+ var token = res === null || res === void 0 ? void 0 : res.token;
16661
+ var tokenexpires = res === null || res === void 0 ? void 0 : res.tokenExpires;
16662
+ var refreshtoken = res === null || res === void 0 ? void 0 : res.refreshToken;
16663
+ if (token && tokenexpires && refreshtoken) {
16664
+ resolve({
16665
+ token: token,
16666
+ tokenexpires: tokenexpires,
16667
+ refreshtoken: refreshtoken
16668
+ });
16669
+ } else {
16670
+ console.error('window.getTokenComplete fail');
16671
+ resolve(null);
16672
+ }
16673
+ };
16674
+ window.aPaaS.getToken(window.getTokenComplete);
16675
+ } else {
16676
+ console.log('in IOS, use window.aPaaS.getToken');
16677
+ window.aPaaS.getToken(function (res) {
16678
+ console.log('window.aPaaS.getToken success', res);
16679
+ var token = res === null || res === void 0 ? void 0 : res.token;
16680
+ var tokenexpires = res === null || res === void 0 ? void 0 : res.tokenExpires;
16681
+ var refreshtoken = res === null || res === void 0 ? void 0 : res.refreshToken;
16682
+ if (token && tokenexpires && refreshtoken) {
16683
+ resolve({
16684
+ token: token,
16685
+ tokenexpires: tokenexpires,
16686
+ refreshtoken: refreshtoken
16687
+ });
16688
+ } else {
16689
+ console.error('window.aPaaS.getToken fail');
16690
+ resolve(null);
16691
+ }
16692
+ });
16693
+ }
16620
16694
  } else {
16621
16695
  console.warn('window.aPaaS.getToken fail: not in SPU container');
16622
16696
  resolve(null);
@@ -16630,21 +16704,26 @@ var getSPUContainerToken = function getSPUContainerToken() {
16630
16704
  // 因此 在APP端 单点登录不使用url上的token 而是直接拿App端的 App端能保证拿到的token一直不过期
16631
16705
  var fixLoginQuery = /*#__PURE__*/function () {
16632
16706
  var _ref2 = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee2(query) {
16633
- var _window$aPaaS2;
16634
- var newQuery, type, tokenData;
16707
+ var _window$aPaaS3;
16708
+ var newQuery, tokenData;
16635
16709
  return _regeneratorRuntime$1().wrap(function _callee2$(_context2) {
16636
16710
  while (1) switch (_context2.prev = _context2.next) {
16637
16711
  case 0:
16638
16712
  newQuery = cloneDeep$1(query);
16639
- _context2.next = 3;
16640
- return Module.getSpuContainerType();
16641
- case 3:
16642
- type = _context2.sent;
16643
- if (!(type === 'app' && (_window$aPaaS2 = window.aPaaS) !== null && _window$aPaaS2 !== void 0 && _window$aPaaS2.getToken)) {
16644
- _context2.next = 12;
16713
+ if ((_window$aPaaS3 = window.aPaaS) !== null && _window$aPaaS3 !== void 0 && _window$aPaaS3.getToken) {
16714
+ _context2.next = 5;
16645
16715
  break;
16646
16716
  }
16647
- console.log('SPU is in App, singleLogin use App token.');
16717
+ console.log('SPU is not in App, singleLogin use query token.');
16718
+ _context2.next = 10;
16719
+ break;
16720
+ case 5:
16721
+ if (core$1.checkInAppSpuWebview()) {
16722
+ console.log('SPU is in App spuwebview, singleLogin use App token.');
16723
+ } else if (globalOptions.modulekey === 'portalEngine') {
16724
+ // 兼容门户引擎在 interactivewebview 的情况
16725
+ console.log('SPU is in App interactivewebview, singleLogin use App token.');
16726
+ }
16648
16727
  _context2.next = 8;
16649
16728
  return getSPUContainerToken();
16650
16729
  case 8:
@@ -16654,13 +16733,9 @@ var fixLoginQuery = /*#__PURE__*/function () {
16654
16733
  newQuery.tokenexpires = tokenData.tokenexpires;
16655
16734
  newQuery.refreshtoken = tokenData.refreshtoken;
16656
16735
  }
16657
- _context2.next = 13;
16658
- break;
16659
- case 12:
16660
- console.log('SPU is not in App, singleLogin use query token.');
16661
- case 13:
16736
+ case 10:
16662
16737
  return _context2.abrupt("return", newQuery);
16663
- case 14:
16738
+ case 11:
16664
16739
  case "end":
16665
16740
  return _context2.stop();
16666
16741
  }
@@ -16670,64 +16745,94 @@ var fixLoginQuery = /*#__PURE__*/function () {
16670
16745
  return _ref2.apply(this, arguments);
16671
16746
  };
16672
16747
  }();
16673
- // 修复 App 切到后台时间过长导致 token 过期
16674
- // 监听 App 切换到前台 判断token是否过期 如果过期就调用获取tokne方法更新token
16675
- var fixAppTokenExpired = function fixAppTokenExpired() {
16676
- var _window$Native;
16677
- if (globalOptions.isfixapptokenexpired && (_window$Native = window.Native) !== null && _window$Native !== void 0 && _window$Native.onHostEnterForceground) {
16678
- console.log('listen App enter forceground');
16679
- window.Native.onHostEnterForceground( /*#__PURE__*/_asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee3() {
16680
- var loginState, tokenData;
16681
- return _regeneratorRuntime$1().wrap(function _callee3$(_context3) {
16682
- while (1) switch (_context3.prev = _context3.next) {
16683
- case 0:
16684
- console.log('App enter forceground');
16685
- loginState = getLoginState();
16686
- if (!(!loginState.islogin && loginState.type === 2 && loginState.role !== 'center')) {
16687
- _context3.next = 20;
16688
- break;
16689
- }
16690
- _context3.next = 5;
16691
- return getSPUContainerToken();
16692
- case 5:
16693
- tokenData = _context3.sent;
16694
- if (!tokenData) {
16695
- _context3.next = 12;
16696
- break;
16697
- }
16698
- setToken(tokenData.token);
16699
- setRefreshToken(tokenData.refreshtoken);
16700
- setTokenExpires(tokenData.tokenexpires);
16701
- _context3.next = 20;
16748
+ var checkTokenExpiredAndUpdate = /*#__PURE__*/function () {
16749
+ var _ref3 = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee3() {
16750
+ var loginState, tokenData;
16751
+ return _regeneratorRuntime$1().wrap(function _callee3$(_context3) {
16752
+ while (1) switch (_context3.prev = _context3.next) {
16753
+ case 0:
16754
+ loginState = getLoginState();
16755
+ if (!(!loginState.islogin && loginState.type === 2 && loginState.role !== 'center')) {
16756
+ _context3.next = 19;
16702
16757
  break;
16703
- case 12:
16704
- _context3.prev = 12;
16705
- _context3.next = 15;
16706
- return updateToken();
16707
- case 15:
16708
- _context3.next = 20;
16758
+ }
16759
+ _context3.next = 4;
16760
+ return getSPUContainerToken();
16761
+ case 4:
16762
+ tokenData = _context3.sent;
16763
+ if (!tokenData) {
16764
+ _context3.next = 11;
16709
16765
  break;
16710
- case 17:
16711
- _context3.prev = 17;
16712
- _context3.t0 = _context3["catch"](12);
16713
- console.error(_context3.t0);
16714
- case 20:
16715
- case "end":
16716
- return _context3.stop();
16717
- }
16718
- }, _callee3, null, [[12, 17]]);
16719
- })));
16720
- }
16721
- };
16766
+ }
16767
+ setToken(tokenData.token);
16768
+ setRefreshToken(tokenData.refreshtoken);
16769
+ setTokenExpires(tokenData.tokenexpires);
16770
+ _context3.next = 19;
16771
+ break;
16772
+ case 11:
16773
+ _context3.prev = 11;
16774
+ _context3.next = 14;
16775
+ return updateToken();
16776
+ case 14:
16777
+ _context3.next = 19;
16778
+ break;
16779
+ case 16:
16780
+ _context3.prev = 16;
16781
+ _context3.t0 = _context3["catch"](11);
16782
+ console.error(_context3.t0);
16783
+ case 19:
16784
+ case "end":
16785
+ return _context3.stop();
16786
+ }
16787
+ }, _callee3, null, [[11, 16]]);
16788
+ }));
16789
+ return function checkTokenExpiredAndUpdate() {
16790
+ return _ref3.apply(this, arguments);
16791
+ };
16792
+ }();
16793
+ // 修复 App 切到后台时间过长导致 token 过期
16794
+ // 监听 App 切换到前台 判断token是否过期 如果过期就调用获取tokne方法更新token
16795
+ var fixAppTokenExpired = /*#__PURE__*/function () {
16796
+ var _ref4 = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee4() {
16797
+ var _window$Native, _window$aPaaS4;
16798
+ return _regeneratorRuntime$1().wrap(function _callee4$(_context4) {
16799
+ while (1) switch (_context4.prev = _context4.next) {
16800
+ case 0:
16801
+ if (globalOptions.isfixapptokenexpired && core$1.checkInAppSpuWebview() && (_window$Native = window.Native) !== null && _window$Native !== void 0 && _window$Native.onHostEnterForceground) {
16802
+ console.log('SPU is in App spuwebview, listen App enter forceground.');
16803
+ window.Native.onHostEnterForceground(function () {
16804
+ console.log('App enter forceground');
16805
+ checkTokenExpiredAndUpdate();
16806
+ });
16807
+ } else if (globalOptions.isfixapptokenexpired && globalOptions.modulekey === 'portalEngine' && (_window$aPaaS4 = window.aPaaS) !== null && _window$aPaaS4 !== void 0 && _window$aPaaS4.getToken) {
16808
+ console.log('SPU is in App interactivewebview, listen App enter forceground.');
16809
+ setTimeout(function () {
16810
+ window.Native = window.Native || {};
16811
+ window.Native.onHostEnterForceground = function () {
16812
+ console.log('App enter forceground');
16813
+ checkTokenExpiredAndUpdate();
16814
+ };
16815
+ }, 1000);
16816
+ }
16817
+ case 1:
16818
+ case "end":
16819
+ return _context4.stop();
16820
+ }
16821
+ }, _callee4);
16822
+ }));
16823
+ return function fixAppTokenExpired() {
16824
+ return _ref4.apply(this, arguments);
16825
+ };
16826
+ }();
16722
16827
  // 单点登录
16723
16828
  function singleLogin(_x3) {
16724
16829
  return _singleLogin.apply(this, arguments);
16725
16830
  }
16726
16831
  function _singleLogin() {
16727
- _singleLogin = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee7(query) {
16832
+ _singleLogin = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee8(query) {
16728
16833
  var flag, token, refreshtoken, tokenexpires, envname, context, setBaseInfo, isneedlogin, loginRole, refreshTokenUser, tokenUser, nowEnvname, envData;
16729
- return _regeneratorRuntime$1().wrap(function _callee7$(_context7) {
16730
- while (1) switch (_context7.prev = _context7.next) {
16834
+ return _regeneratorRuntime$1().wrap(function _callee8$(_context8) {
16835
+ while (1) switch (_context8.prev = _context8.next) {
16731
16836
  case 0:
16732
16837
  setBaseInfo = function _setBaseInfo() {
16733
16838
  setToken(token);
@@ -16741,13 +16846,13 @@ function _singleLogin() {
16741
16846
  };
16742
16847
  query = cloneDeep$1(query);
16743
16848
  if (!globalOptions.isfixapptokenexpired) {
16744
- _context7.next = 6;
16849
+ _context8.next = 6;
16745
16850
  break;
16746
16851
  }
16747
- _context7.next = 5;
16852
+ _context8.next = 5;
16748
16853
  return fixLoginQuery(query);
16749
16854
  case 5:
16750
- query = _context7.sent;
16855
+ query = _context8.sent;
16751
16856
  case 6:
16752
16857
  flag = false; // 是否登录成功
16753
16858
  token = query.token;
@@ -16756,7 +16861,7 @@ function _singleLogin() {
16756
16861
  envname = query.envname;
16757
16862
  context = query.context;
16758
16863
  if (!checkLoginByToken(token)) {
16759
- _context7.next = 64;
16864
+ _context8.next = 64;
16760
16865
  break;
16761
16866
  }
16762
16867
  isneedlogin = true; // 是否需要走单点登录流程
@@ -16778,91 +16883,91 @@ function _singleLogin() {
16778
16883
  // isneedlogin = true
16779
16884
  // debugger
16780
16885
  if (!isneedlogin) {
16781
- _context7.next = 62;
16886
+ _context8.next = 62;
16782
16887
  break;
16783
16888
  }
16784
16889
  setBaseInfo();
16785
16890
  // 单点登录写入 token 之后
16786
16891
  // 1、如果 refreshtoken 不完整 则换取完整的 refreshtoken
16787
- _context7.prev = 18;
16892
+ _context8.prev = 18;
16788
16893
  if (!checkLogin()) {
16789
- _context7.next = 25;
16894
+ _context8.next = 25;
16790
16895
  break;
16791
16896
  }
16792
16897
  refreshTokenUser = getUserByToken(getRefreshToken());
16793
16898
  tokenUser = getUserByToken(getToken());
16794
16899
  if (!(!(refreshTokenUser !== null && refreshTokenUser !== void 0 && refreshTokenUser.tokenId) && tokenUser !== null && tokenUser !== void 0 && tokenUser.tokenId)) {
16795
- _context7.next = 25;
16900
+ _context8.next = 25;
16796
16901
  break;
16797
16902
  }
16798
- _context7.next = 25;
16903
+ _context8.next = 25;
16799
16904
  return updateToken();
16800
16905
  case 25:
16801
- _context7.next = 30;
16906
+ _context8.next = 30;
16802
16907
  break;
16803
16908
  case 27:
16804
- _context7.prev = 27;
16805
- _context7.t0 = _context7["catch"](18);
16806
- console.error(_context7.t0);
16909
+ _context8.prev = 27;
16910
+ _context8.t0 = _context8["catch"](18);
16911
+ console.error(_context8.t0);
16807
16912
  case 30:
16808
16913
  // 2、重新计算刷新 token 时间 因为刚开始进入就 startRefreshtoken 检测到没有 token 会过10秒才执行刷新 token 操作
16809
16914
  startRefreshtoken();
16810
16915
  // 获取环境信息和租户配置信息
16811
- _context7.next = 33;
16916
+ _context8.next = 33;
16812
16917
  return getEnvname();
16813
16918
  case 33:
16814
- nowEnvname = _context7.sent;
16919
+ nowEnvname = _context8.sent;
16815
16920
  if (!nowEnvname) {
16816
- _context7.next = 54;
16921
+ _context8.next = 54;
16817
16922
  break;
16818
16923
  }
16819
- _context7.next = 37;
16924
+ _context8.next = 37;
16820
16925
  return requestEnvdata(nowEnvname);
16821
16926
  case 37:
16822
- envData = _context7.sent;
16927
+ envData = _context8.sent;
16823
16928
  if (!envData) {
16824
- _context7.next = 50;
16929
+ _context8.next = 50;
16825
16930
  break;
16826
16931
  }
16827
16932
  saveEnvdata(envData);
16828
16933
  if (!envData.tenantcode) {
16829
- _context7.next = 46;
16934
+ _context8.next = 46;
16830
16935
  break;
16831
16936
  }
16832
16937
  setTecode(envData.tenantcode);
16833
16938
  // 租户配置
16834
- _context7.next = 44;
16939
+ _context8.next = 44;
16835
16940
  return tenantSetting.requestAndSetTenantSetting(envData.tenantcode);
16836
16941
  case 44:
16837
- _context7.next = 48;
16942
+ _context8.next = 48;
16838
16943
  break;
16839
16944
  case 46:
16840
16945
  tenantSetting.removeTenantSetting();
16841
16946
  removeTecode();
16842
16947
  case 48:
16843
- _context7.next = 52;
16948
+ _context8.next = 52;
16844
16949
  break;
16845
16950
  case 50:
16846
16951
  removeEnvdata();
16847
16952
  removeTecode();
16848
16953
  case 52:
16849
- _context7.next = 56;
16954
+ _context8.next = 56;
16850
16955
  break;
16851
16956
  case 54:
16852
16957
  removeEnvdata();
16853
16958
  removeTecode();
16854
16959
  case 56:
16855
- _context7.next = 58;
16960
+ _context8.next = 58;
16856
16961
  return getAndSetTenant();
16857
16962
  case 58:
16858
- _context7.next = 60;
16963
+ _context8.next = 60;
16859
16964
  return getAndSetUserInfo();
16860
16965
  case 60:
16861
16966
  // 单点登录后 获取 web 开发者模式 如果是则设置 isdebugger
16862
16967
  urlquery.dealWebDebugger();
16863
16968
  flag = true;
16864
16969
  case 62:
16865
- _context7.next = 67;
16970
+ _context8.next = 67;
16866
16971
  break;
16867
16972
  case 64:
16868
16973
  flag = false;
@@ -16870,10 +16975,10 @@ function _singleLogin() {
16870
16975
  console.error('单点登录失败,请检查链接所传 token/refreshtoken/tokenexpires 是否非法或过期。');
16871
16976
  case 67:
16872
16977
  if (!flag) {
16873
- _context7.next = 70;
16978
+ _context8.next = 70;
16874
16979
  break;
16875
16980
  }
16876
- _context7.next = 70;
16981
+ _context8.next = 70;
16877
16982
  return core$1.initGetData();
16878
16983
  case 70:
16879
16984
  if (flag) {
@@ -16884,15 +16989,15 @@ function _singleLogin() {
16884
16989
  envname && delete query.envname;
16885
16990
  context && delete query.context;
16886
16991
  }
16887
- return _context7.abrupt("return", {
16992
+ return _context8.abrupt("return", {
16888
16993
  flag: flag,
16889
16994
  query: query
16890
16995
  });
16891
16996
  case 72:
16892
16997
  case "end":
16893
- return _context7.stop();
16998
+ return _context8.stop();
16894
16999
  }
16895
- }, _callee7, null, [[18, 27]]);
17000
+ }, _callee8, null, [[18, 27]]);
16896
17001
  }));
16897
17002
  return _singleLogin.apply(this, arguments);
16898
17003
  }
@@ -16901,19 +17006,19 @@ function installAuth(options) {
16901
17006
  fixAppTokenExpired();
16902
17007
  if (options.router) {
16903
17008
  options.router.beforeEach( /*#__PURE__*/function () {
16904
- var _ref4 = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee4(to, from, next) {
17009
+ var _ref5 = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee5(to, from, next) {
16905
17010
  var singleLoginRes;
16906
- return _regeneratorRuntime$1().wrap(function _callee4$(_context4) {
16907
- while (1) switch (_context4.prev = _context4.next) {
17011
+ return _regeneratorRuntime$1().wrap(function _callee5$(_context5) {
17012
+ while (1) switch (_context5.prev = _context5.next) {
16908
17013
  case 0:
16909
17014
  if (!to.query.token) {
16910
- _context4.next = 8;
17015
+ _context5.next = 8;
16911
17016
  break;
16912
17017
  }
16913
- _context4.next = 3;
17018
+ _context5.next = 3;
16914
17019
  return singleLogin(to.query);
16915
17020
  case 3:
16916
- singleLoginRes = _context4.sent;
17021
+ singleLoginRes = _context5.sent;
16917
17022
  if (singleLoginRes.flag) {
16918
17023
  // next()
16919
17024
  next({
@@ -16925,18 +17030,18 @@ function installAuth(options) {
16925
17030
  next();
16926
17031
  }
16927
17032
  options.singleLoginCallback && options.singleLoginCallback(singleLoginRes);
16928
- _context4.next = 9;
17033
+ _context5.next = 9;
16929
17034
  break;
16930
17035
  case 8:
16931
17036
  next();
16932
17037
  case 9:
16933
17038
  case "end":
16934
- return _context4.stop();
17039
+ return _context5.stop();
16935
17040
  }
16936
- }, _callee4);
17041
+ }, _callee5);
16937
17042
  }));
16938
17043
  return function (_x4, _x5, _x6) {
16939
- return _ref4.apply(this, arguments);
17044
+ return _ref5.apply(this, arguments);
16940
17045
  };
16941
17046
  }());
16942
17047
  } else {
@@ -70360,4 +70465,4 @@ var SPUWebPlugin = {
70360
70465
  version: version
70361
70466
  };
70362
70467
 
70363
- export { AMapLoader, Module, normalAxios$1 as apaasAxios, normalAxios$1 as axios, checkLogin, index as components, SPUWebPlugin as default, downloadService, expandexp, functionCheck, getAddress, getCloudServ, getDistance, getLocation, getRefreshToken, getServToken, getServerTime, getToken, getTokenExpires, getUniqueid, getUser, v4 as getUuid, globalConfig, globalOptions, isInApp, isdebugger, isvirtuallocation, lsProxy, mapService, setTitle, singleLogin, spuAxios, spuConfig, ssProxy, updateToken, uploadService, wxworkSuite };
70468
+ export { AMapLoader, Module, normalAxios$1 as apaasAxios, normalAxios$1 as axios, checkLogin, index as components, SPUWebPlugin as default, downloadService, expandexp, functionCheck, getAddress, getCloudServ, getDistance, getLocation, getRefreshToken, getServToken, getServerTime, getToken, getTokenExpires, getUniqueid, getUser, v4 as getUuid, globalConfig, globalOptions, isInApp, isdebugger, isvirtuallocation, lsProxy, mapService, setRefreshToken, setTitle, setToken, setTokenExpires, singleLogin, spuAxios, spuConfig, ssProxy, updateToken, uploadService, wxworkSuite };