From a3f8679ee6d002ebb5b65ee711392c9e256c822f Mon Sep 17 00:00:00 2001 From: "liujw155@outlook.com" Date: Wed, 30 Aug 2023 09:45:37 +0800 Subject: [PATCH] add server from_platform = ouxuan_weixin_assistant --- src/js/server.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/server.js b/src/js/server.js index 2c2579d..c671b75 100644 --- a/src/js/server.js +++ b/src/js/server.js @@ -12,7 +12,9 @@ export class Server { const _token = uni.getStorageSync('token') || ''; if(_token)data['token'] = _token; - if(method === 'POST'&&_token)url = url + `?token=${_token}` + if(method === 'POST'&&_token)url = url + `?token=${_token}`; + // 20230829 新增全局参数 + data[ 'from_platform' ] = 'ouxuan_weixin_assistant'; uni.request({ url, data,