Commit 3c007020 authored by ly's avatar ly

修改请求

parent 26b95d10
......@@ -5674,7 +5674,7 @@ eval("/* WEBPACK VAR INJECTION */(function(__f__) {Object.defineProperty(exports
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/* WEBPACK VAR INJECTION */(function(__f__) {Object.defineProperty(exports, \"__esModule\", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 99));var _header = __webpack_require__(/*! ./header.js */ 105);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {try {var info = gen[key](arg);var value = info.value;} catch (error) {reject(error);return;}if (info.done) {resolve(value);} else {Promise.resolve(value).then(_next, _throw);}}function _asyncToGenerator(fn) {return function () {var self = this,args = arguments;return new Promise(function (resolve, reject) {var gen = fn.apply(self, args);function _next(value) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);}function _throw(err) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);}_next(undefined);});};}\nvar request = /*#__PURE__*/function () {var _ref = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee(url, type, data) {var baseUrl, headerDevice, rd, common;return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:\n // const baseUrl='http://112.124.25.186:8089' //测试\n baseUrl = 'https://api.yyhock.com'; //线上\n // 这里确保一定是可以获取得到的\n headerDevice = uni.getStorageSync('m-header-device');\n rd = null;\n if (headerDevice) {\n rd = headerDevice;\n } else {\n common = (0, _header.initHeaderDevice)();\n\n rd = JSON.stringify(common);\n }\n __f__(\"log\", baseUrl, 'rd', \" at utils/request.js:15\");return _context.abrupt(\"return\",\n new Promise(function (resolve, reject) {\n var token = uni.getStorageSync('token');\n uni.request({\n url: baseUrl + url,\n method: type,\n data: _objectSpread({},\n data),\n\n header: {\n Accept: \"application/json;charset=UTF-8\",\n \"Content-Type\": \"application/json;charset=UTF-8\",\n device: rd,\n Authorization: token,\n Author: token },\n\n success: function success(res) {var\n\n data = res.data,statusCode = res.statusCode;\n if (statusCode === 200) {\n if (data.success == true) {\n return resolve(data);\n } else {\n if (data.code == '403') {\n __f__(\"log\", res, '402', \" at utils/request.js:39\");\n uni.showToast({\n title: data.message,\n icon: \"none\",\n duration: 2000 });\n\n\n uni.removeStorageSync('token');\n // this.Go('uni:/pages/login/login')\n } else {\n uni.showToast({\n title: data.message,\n icon: \"none\",\n duration: 2000 });\n\n\n return false;\n }\n\n }\n } else {\n __f__(\"log\", res.errMsg, '!200', \" at utils/request.js:60\");\n return reject({\n data: data,\n message: res.errMsg });\n\n }\n },\n fail: function fail(err) {\n __f__(\"log\", err, 954, \" at utils/request.js:68\");\n return uni.showToast({\n icon: 'loading',\n title: '请求失败' });\n\n reject(err);\n } });\n\n\n }));case 6:case \"end\":return _context.stop();}}}, _callee);}));return function request(_x, _x2, _x3) {return _ref.apply(this, arguments);};}();var _default =\n\n\nrequest;exports.default = _default;\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dc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dEF1dGhvcjp0b2tlbixcblx0XHRcdH0sXG5cdFx0ICAgIHN1Y2Nlc3M6IChyZXMpID0+IHsgXG5cdFx0XHRcdFxuXHRcdCAgICAgICAgY29uc3Qge2RhdGEsIHN0YXR1c0NvZGV9ID0gcmVzO1xuXHRcdCAgICAgICAgaWYgKHN0YXR1c0NvZGUgPT09IDIwMCkge1xuXHRcdCAgICAgICAgXHRpZiAoZGF0YS5zdWNjZXNzPT10cnVlKSB7XG5cdFx0ICAgICAgICBcdFx0cmV0dXJuIHJlc29sdmUoZGF0YSlcblx0XHQgICAgICAgICAgICB9IGVsc2UgeyAgXG5cdFx0ICAgICAgICBcdCAgICBpZihkYXRhLmNvZGU9PSc0MDMnKXtcblx0XHRcdFx0XHRcdFx0Y29uc29sZS5sb2cocmVzLCc0MDInKTsgICBcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB1bmkuc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGU6IGRhdGEubWVzc2FnZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWNvbjogXCJub25lXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGR1cmF0aW9uOiAyMDAwXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVuaS5yZW1vdmVTdG9yYWdlU3luYygndG9rZW4nKVx0XG5cdFx0XHRcdFx0XHRcdC8vIHRoaXMuR28oJ3VuaTovcGFnZXMvbG9naW4vbG9naW4nKVxuICAgICAgICAgICAgICAgICAgICAgICAgfWVsc2V7XG5cdFx0XHRcdFx0XHRcdFx0dW5pLnNob3dUb2FzdCh7XG5cdFx0XHRcdFx0XHRcdFx0ICAgIHRpdGxlOiBkYXRhLm1lc3NhZ2UsXG5cdFx0XHRcdFx0XHRcdFx0ICAgIGljb246IFwibm9uZVwiLFxuXHRcdFx0XHRcdFx0XHRcdCAgICBkdXJhdGlvbjogMjAwMFxuXHRcdFx0XHRcdFx0XHRcdCAgICAgICAgICAgICAgICAgICAgXG5cdFx0XHRcdFx0XHRcdFx0fSlcblx0XHRcdFx0XHRcdFx0XHRyZXR1cm4gZmFsc2VcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cblx0XHQgICAgICAgIFx0XHRcdFx0XHRcblx0XHRcdFx0XHR9XG5cdFx0XHRcdH0gZWxzZSB7XG5cdFx0ICAgICAgICBcdFx0Y29uc29sZS5sb2cocmVzLmVyck1zZywnITIwMCcpO1xuXHRcdCAgICAgICAgXHRyZXR1cm4gcmVqZWN0KHtcblx0XHQgICAgICAgIFx0XHRkYXRhLFxuXHRcdCAgICAgICAgXHRcdG1lc3NhZ2U6IHJlcy5lcnJNc2dcblx0XHQgICAgICAgIFx0fSlcblx0XHQgICAgICAgIH1cblx0XHQgICAgfSxcblx0XHRcdGZhaWw6KGVycik9PiB7XG5cdFx0XHRcdGNvbnNvbGUubG9nKGVyciw5NTQpXG5cdFx0XHRcdHJldHVybiB1bmkuc2hvd1RvYXN0KHtcblx0XHRcdFx0XHRpY29uOidsb2FkaW5nJyxcblx0XHRcdFx0XHR0aXRsZTon6K+35rGC5aSx6LSlJ1xuXHRcdFx0XHR9KVxuXHRcdFx0XHRyZWplY3QoZXJyKVxuXHRcdFx0fVxuXHRcdH0pO1xuXHRcblx0fSlcblxufVxuZXhwb3J0IGRlZmF1bHQgcmVxdWVzdDsiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///122\n");
eval("/* WEBPACK VAR INJECTION */(function(__f__) {Object.defineProperty(exports, \"__esModule\", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 99));var _header = __webpack_require__(/*! ./header.js */ 105);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {try {var info = gen[key](arg);var value = info.value;} catch (error) {reject(error);return;}if (info.done) {resolve(value);} else {Promise.resolve(value).then(_next, _throw);}}function _asyncToGenerator(fn) {return function () {var self = this,args = arguments;return new Promise(function (resolve, reject) {var gen = fn.apply(self, args);function _next(value) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);}function _throw(err) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);}_next(undefined);});};}\nvar request = /*#__PURE__*/function () {var _ref = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee(url, type, data) {var baseUrl, headerDevice, rd, common;return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:\n // const baseUrl='http://112.124.25.186:8089' //测试\n baseUrl = 'https://api.yyhock.com'; //线上\n // 这里确保一定是可以获取得到的\n headerDevice = uni.getStorageSync('m-header-device');\n rd = null;\n if (headerDevice) {\n rd = headerDevice;\n } else {\n common = (0, _header.initHeaderDevice)();\n\n rd = JSON.stringify(common);\n }\n __f__(\"log\", baseUrl, 'rd', \" at utils/request.js:15\");return _context.abrupt(\"return\",\n new Promise(function (resolve, reject) {\n var token = uni.getStorageSync('token');\n uni.request({\n url: baseUrl + url,\n method: type,\n data: _objectSpread({},\n data),\n\n header: {\n Accept: \"application/json;charset=UTF-8\",\n \"Content-Type\": \"application/json;charset=UTF-8\",\n device: rd,\n Authorization: token,\n Author: token },\n\n success: function success(res) {var\n\n data = res.data,statusCode = res.statusCode;\n if (statusCode === 200) {\n if (data.success == true) {\n return resolve(data);\n } else {\n if (data.code == '403') {\n __f__(\"log\", res, '402', \" at utils/request.js:39\");\n uni.showToast({\n title: data.message,\n icon: \"none\",\n duration: 2000 });\n\n\n uni.removeStorageSync('token');\n // this.Go('uni:/pages/login/login')\n } else {\n uni.showToast({\n title: data.message,\n icon: \"none\",\n duration: 2000 });\n\n\n return false;\n }\n\n }\n } else {\n __f__(\"log\", res.errMsg, '!200', \" at utils/request.js:60\");\n return reject({\n data: data,\n message: res.errMsg });\n\n }\n },\n fail: function fail(err) {\n __f__(\"log\", err, 954, \" at utils/request.js:68\");\n // return uni.showToast({\n // \ticon:'loading',\n // \ttitle:'请求失败'\n // })\n reject(err);\n } });\n\n\n }));case 6:case \"end\":return _context.stop();}}}, _callee);}));return function request(_x, _x2, _x3) {return _ref.apply(this, arguments);};}();var _default =\n\n\nrequest;exports.default = _default;\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/lib/format-log.js */ 7)[\"default\"]))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInVuaS1hcHA6Ly8vdXRpbHMvcmVxdWVzdC5qcyJdLCJuYW1lcyI6WyJyZXF1ZXN0IiwidXJsIiwidHlwZSIsImRhdGEiLCJiYXNlVXJsIiwiaGVhZGVyRGV2aWNlIiwidW5pIiwiZ2V0U3RvcmFnZVN5bmMiLCJyZCIsImNvbW1vbiIsIkpTT04iLCJzd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vbGUubG9nKHJlcywnNDAyJyk7ICAgXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdW5pLnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiBkYXRhLm1lc3NhZ2UsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGljb246IFwibm9uZVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkdXJhdGlvbjogMjAwMFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB1bmkucmVtb3ZlU3RvcmFnZVN5bmMoJ3Rva2VuJylcdFxuXHRcdFx0XHRcdFx0XHQvLyB0aGlzLkdvKCd1bmk6L3BhZ2VzL2xvZ2luL2xvZ2luJylcbiAgICAgICAgICAgICAgICAgICAgICAgIH1lbHNle1xuXHRcdFx0XHRcdFx0XHRcdHVuaS5zaG93VG9hc3Qoe1xuXHRcdFx0XHRcdFx0XHRcdCAgICB0aXRsZTogZGF0YS5tZXNzYWdlLFxuXHRcdFx0XHRcdFx0XHRcdCAgICBpY29uOiBcIm5vbmVcIixcblx0XHRcdFx0XHRcdFx0XHQgICAgZHVyYXRpb246IDIwMDBcblx0XHRcdFx0XHRcdFx0XHQgICAgICAgICAgICAgICAgICAgIFxuXHRcdFx0XHRcdFx0XHRcdH0pXG5cdFx0XHRcdFx0XHRcdFx0cmV0dXJuIGZhbHNlXG4gICAgICAgICAgICAgICAgICAgICAgICB9XG5cdFx0ICAgICAgICBcdFx0XHRcdFx0XG5cdFx0XHRcdFx0fVxuXHRcdFx0XHR9IGVsc2Uge1xuXHRcdCAgICAgICAgXHRcdGNvbnNvbGUubG9nKHJlcy5lcnJNc2csJyEyMDAnKTtcblx0XHQgICAgICAgIFx0cmV0dXJuIHJlamVjdCh7XG5cdFx0ICAgICAgICBcdFx0ZGF0YSxcblx0XHQgICAgICAgIFx0XHRtZXNzYWdlOiByZXMuZXJyTXNnXG5cdFx0ICAgICAgICBcdH0pXG5cdFx0ICAgICAgICB9XG5cdFx0ICAgIH0sXG5cdFx0XHRmYWlsOihlcnIpPT4ge1xuXHRcdFx0XHRjb25zb2xlLmxvZyhlcnIsOTU0KVxuXHRcdFx0XHQvLyByZXR1cm4gdW5pLnNob3dUb2FzdCh7XG5cdFx0XHRcdC8vIFx0aWNvbjonbG9hZGluZycsXG5cdFx0XHRcdC8vIFx0dGl0bGU6J+ivt+axguWksei0pSdcblx0XHRcdFx0Ly8gfSlcblx0XHRcdFx0cmVqZWN0KGVycilcblx0XHRcdH1cblx0XHR9KTtcblx0XG5cdH0pXG5cbn1cbmV4cG9ydCBkZWZhdWx0IHJlcXVlc3Q7Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///122\n");
/***/ })
],[[0,"app-config"]]]);
\ No newline at end of file
......@@ -66,10 +66,10 @@ const request=async(url,type,data)=>{
},
fail:(err)=> {
console.log(err,954)
return uni.showToast({
icon:'loading',
title:'请求失败'
})
// return uni.showToast({
// icon:'loading',
// title:'请求失败'
// })
reject(err)
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment