From 3193632ea7c908462166a25d8c4fc2cb6a32858a Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Sun, 3 Apr 2022 20:17:38 +0800 Subject: [PATCH] u --- usertool.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usertool.js b/usertool.js index a196611..3ba2cb6 100644 --- a/usertool.js +++ b/usertool.js @@ -206,9 +206,11 @@ export default { apiWhat[key] = JSON.stringify(apiWhat[key]) } } + const url = this.makeServerUrl(`${apiVersion}/${apiWho}/${apiTodo}`) + process.env.NODE_ENV === 'development' && console.log('%c '+JSON.stringify({url}), 'color:blue') let [error, { statusCode, header, errMsg, data: resultServer = {} } = {}] = await uni.request({ method: httpMethod, - url: this.makeServerUrl(`${apiVersion}/${apiWho}/${apiTodo}`), + url: url, header: { _passtoken: uni.getStorageSync('_passtoken') }, data: apiWhat, })