tapd相关修改更新
This commit is contained in:
@@ -9,6 +9,20 @@ export function uploadFile(file, data, urlType = 'account') {
|
||||
return http.upload(`${urlType}/admin/common/upload`,data,file)
|
||||
}
|
||||
|
||||
/**
|
||||
* 订阅二维码
|
||||
* @returns
|
||||
*/
|
||||
export function getShopMsgPushCode(data, urlType = 'account') {
|
||||
return request({
|
||||
url: `${urlType}/admin/shopMsgPush/code`,
|
||||
method: "GET",
|
||||
data: {
|
||||
...data
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取店铺权限列表
|
||||
* @returns
|
||||
@@ -22,3 +36,17 @@ export function getShopPermission(data, urlType = 'account') {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据渠道获取版本信息
|
||||
* @returns
|
||||
*/
|
||||
export function getVersion(data, urlType = 'account') {
|
||||
return request({
|
||||
url: `${urlType}/admin/version/${data.source}/${data.type}`,
|
||||
method: "GET",
|
||||
data: {
|
||||
...data
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//服务器接口地址
|
||||
const baseURL : string = 'https://czgdoumei.sxczgkj.com/index.php/api/'
|
||||
const baseURL : string = 'https://newblockwlx.sxczgkj.cn/index.php/api/'
|
||||
// 封装公共请求方法
|
||||
function request(url : string, method : "GET" | "POST" | undefined, data : object | any, toast : boolean) {
|
||||
let networkType = ''
|
||||
|
||||
Reference in New Issue
Block a user