门店端优化
This commit is contained in:
@@ -4,12 +4,6 @@
|
||||
//export const BASE_URL = 'http://yishi.com'
|
||||
export const BASE_URL = 'https://ckbapi.quwanzhi.com'
|
||||
|
||||
// APP配置
|
||||
export const APP_CONFIG = {
|
||||
version: '1.1.0', // 当前APP版本号(与manifest.json保持一致)
|
||||
type: 'aiStore' // APP类型标识
|
||||
}
|
||||
|
||||
// 获取请求头
|
||||
const getHeaders = (options = {}) => {
|
||||
const token = uni.getStorageSync('token');
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import { request, APP_CONFIG } from '../config'
|
||||
|
||||
// APP相关API
|
||||
export const appApi = {
|
||||
// 检测APP更新
|
||||
// @param {string} version - APP版本号(可选,默认使用配置中的版本号)
|
||||
// @returns {Promise} 返回更新信息
|
||||
checkUpdate: (version) => {
|
||||
return request({
|
||||
url: '/v1/app/update',
|
||||
method: 'GET',
|
||||
data: {
|
||||
type: APP_CONFIG.type, // 固定为 aiStore
|
||||
version: version || APP_CONFIG.version // 使用传入的版本号或配置中的默认版本号
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ export const authApi = {
|
||||
account: account,
|
||||
password: password,
|
||||
typeId: 2, // 固定为2
|
||||
deviceId: deviceId || '' // 设备ID(仅APP端有值)
|
||||
deviceId: deviceId || '' // 设备ID(仅APP端有值,H5端为空字符串)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user