|
@@ -10,7 +10,7 @@ const extConfig = uni.getExtConfigSync();
|
|
|
console.log(extConfig)
|
|
|
const baseUrl=extConfig.url+'/'
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -28,9 +28,10 @@ const http = (url = '', date = {}, type = 'POST', header = {
|
|
|
console.log($store.state.wxOpenData.loginInfo)
|
|
|
|
|
|
var wxOpenData=$store.state.wxOpenData
|
|
|
- if(wxOpenData.loginInfo){
|
|
|
+ if(wxOpenData.token){
|
|
|
+ header['token']=wxOpenData.token ;
|
|
|
+ }else if(wxOpenData.loginInfo?.token){
|
|
|
header['token']=wxOpenData.loginInfo.token;
|
|
|
- header['uid']=wxOpenData.loginInfo.uid;
|
|
|
}
|
|
|
|
|
|
|