版本更新

This commit is contained in:
haomingming
2025-09-26 08:41:01 +08:00
parent 36cda41b14
commit df4d95993a
4 changed files with 67 additions and 7 deletions
+4 -2
View File
@@ -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()