版本更新
This commit is contained in:
+4
-2
@@ -8,6 +8,7 @@
|
||||
* @createTime: 2024-7-22 15:05:06
|
||||
*/
|
||||
import BASE_URL from "./config.js";
|
||||
import version from '@/utils/version.js'
|
||||
export const request = (url, data = {}, method = 'post', loading = false, contentType =
|
||||
'application/json',extraHeader={}) => {
|
||||
if (loading) {
|
||||
@@ -17,6 +18,7 @@ export const request = (url, data = {}, method = 'post', loading = false, conten
|
||||
})
|
||||
|
||||
};
|
||||
|
||||
let token = '';
|
||||
if (process.env.UNI_PLATFORM == "h5") {
|
||||
if (window.location.href.indexOf('//.igandan.com') > -1) {
|
||||
@@ -58,7 +60,7 @@ export const request = (url, data = {}, method = 'post', loading = false, conten
|
||||
header['Authorization']='Bearer ' + token;
|
||||
let userInfo= uni.getStorageSync('userInfo')
|
||||
defaultData = {
|
||||
version: '4.0.0',
|
||||
version: version,
|
||||
user_uuid:userInfo.uuid,
|
||||
client_type: 'A', //client_type,
|
||||
timestamp:new Date().getTime()
|
||||
@@ -75,7 +77,7 @@ export const request = (url, data = {}, method = 'post', loading = false, conten
|
||||
let userInfo= uni.getStorageSync('userInfo')
|
||||
console.log(userInfo)
|
||||
defaultData = {
|
||||
version: '4.0.0',
|
||||
version: version,
|
||||
user_uuid:userInfo.uuid,
|
||||
client_type: 'A', //client_type,
|
||||
timestamp:new Date().getTime()
|
||||
|
||||
Reference in New Issue
Block a user