|
@ -12,7 +12,9 @@ export class Server { |
|
|
|
|
|
|
|
|
const _token = uni.getStorageSync('token') || ''; |
|
|
const _token = uni.getStorageSync('token') || ''; |
|
|
if(_token)data['token'] = _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({ |
|
|
uni.request({ |
|
|
url, |
|
|
url, |
|
|
data, |
|
|
data, |
|
|