|
|
|
@ -73,7 +73,10 @@ export function set_auth_token() { |
|
|
|
|
|
|
|
|
|
set_auth_token(); |
|
|
|
|
|
|
|
|
|
function ErrorMsg(error) { |
|
|
|
|
function ErrorMsg(error, load) { |
|
|
|
|
if (!load) { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
if (error && error.response) { |
|
|
|
|
switch (error.response.status) { |
|
|
|
|
case 400: |
|
|
|
@ -144,7 +147,7 @@ function getData(methods, url, params = {}, callBack, load, isCode = false) { |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch(function (error) { |
|
|
|
|
ErrorMsg(error); |
|
|
|
|
ErrorMsg(error, load); |
|
|
|
|
callBack({"code": -1}); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -159,7 +162,7 @@ function getData(methods, url, params = {}, callBack, load, isCode = false) { |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch(function (error) { |
|
|
|
|
ErrorMsg(error); |
|
|
|
|
ErrorMsg(error, load); |
|
|
|
|
callBack({"code": -1}); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -175,7 +178,7 @@ function getData(methods, url, params = {}, callBack, load, isCode = false) { |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
.catch(function (error) { |
|
|
|
|
ErrorMsg(error); |
|
|
|
|
ErrorMsg(error, load); |
|
|
|
|
callBack({"code": -1}); |
|
|
|
|
}); |
|
|
|
|
} else if (methods === 'FILE') { |
|
|
|
@ -185,7 +188,7 @@ function getData(methods, url, params = {}, callBack, load, isCode = false) { |
|
|
|
|
convertRes2Blob(response) |
|
|
|
|
}) |
|
|
|
|
.catch(function (error) { |
|
|
|
|
ErrorMsg(error); |
|
|
|
|
ErrorMsg(error, load); |
|
|
|
|
callBack({"code": -1}); |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
@ -195,7 +198,7 @@ function getData(methods, url, params = {}, callBack, load, isCode = false) { |
|
|
|
|
callBack(response.data); |
|
|
|
|
}) |
|
|
|
|
.catch(function (error) { |
|
|
|
|
ErrorMsg(error); |
|
|
|
|
ErrorMsg(error, load); |
|
|
|
|
callBack({"code": -1}); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
@ -509,11 +512,27 @@ export function uploadimgs(callBack, params, load = true) { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**超级签名 苹果开发者信息 */ |
|
|
|
|
export function iosdeveloper(callBack, params, load = true) { |
|
|
|
|
|
|
|
|
|
/**获取充值价格信息 */ |
|
|
|
|
export function get_package_prices(callBack, params, load = true) { |
|
|
|
|
getData( |
|
|
|
|
'GET', |
|
|
|
|
USERSEVER + '/package_prices', |
|
|
|
|
params, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
|
}, |
|
|
|
|
load, |
|
|
|
|
true, |
|
|
|
|
true |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**用户订单 */ |
|
|
|
|
export function my_order(callBack, params, load = true) { |
|
|
|
|
getData( |
|
|
|
|
params.methods, |
|
|
|
|
USERSEVER + '/supersign/developer', |
|
|
|
|
USERSEVER + '/orders', |
|
|
|
|
params.data, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
@ -524,11 +543,11 @@ export function iosdeveloper(callBack, params, load = true) { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**超级签名 设备消耗信息 */ |
|
|
|
|
export function iosdevices(callBack, params, load = true) { |
|
|
|
|
/**实名认证 */ |
|
|
|
|
export function user_certification(callBack, params, load = true) { |
|
|
|
|
getData( |
|
|
|
|
params.methods, |
|
|
|
|
USERSEVER + '/supersign/devices', |
|
|
|
|
USERSEVER + '/certification', |
|
|
|
|
params.data, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
@ -539,12 +558,11 @@ export function iosdevices(callBack, params, load = true) { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**超级签名 设备udid信息 */ |
|
|
|
|
export function iosdevicesudid(callBack, params, load = true) { |
|
|
|
|
// eslint-disable-next-line no-console
|
|
|
|
|
/**用户信息修改验证 */ |
|
|
|
|
export function changeInfoFun(callBack, params, load = true) { |
|
|
|
|
getData( |
|
|
|
|
params.methods, |
|
|
|
|
USERSEVER + '/supersign/udid', |
|
|
|
|
USERSEVER + '/change', |
|
|
|
|
params.data, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
@ -555,12 +573,12 @@ export function iosdevicesudid(callBack, params, load = true) { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**超级签名 苹果开发设备udid信息 */ |
|
|
|
|
export function iosudevices(callBack, params, load = true) { |
|
|
|
|
// eslint-disable-next-line no-console
|
|
|
|
|
|
|
|
|
|
/**用户绑定域名*/ |
|
|
|
|
export function domainFun(callBack, params, load = true) { |
|
|
|
|
getData( |
|
|
|
|
params.methods, |
|
|
|
|
USERSEVER + '/supersign/udevices', |
|
|
|
|
USERSEVER + '/cname_domain', |
|
|
|
|
params.data, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
@ -571,12 +589,12 @@ export function iosudevices(callBack, params, load = true) { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**获取充值价格信息 */ |
|
|
|
|
export function get_package_prices(callBack, params, load = true) { |
|
|
|
|
/**获取签名任务状态 */ |
|
|
|
|
export function gettask(callBack, params, load = true) { |
|
|
|
|
getData( |
|
|
|
|
'GET', |
|
|
|
|
USERSEVER + '/package_prices', |
|
|
|
|
params, |
|
|
|
|
USERSEVER + '/task/' + params.short, |
|
|
|
|
params.data, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
|
}, |
|
|
|
@ -586,11 +604,12 @@ export function get_package_prices(callBack, params, load = true) { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**用户订单 */ |
|
|
|
|
export function my_order(callBack, params, load = true) { |
|
|
|
|
|
|
|
|
|
/**微信用户绑定 */ |
|
|
|
|
export function wxutils(callBack, params, load = true) { |
|
|
|
|
getData( |
|
|
|
|
params.methods, |
|
|
|
|
USERSEVER + '/orders', |
|
|
|
|
USERSEVER + '/twx/info', |
|
|
|
|
params.data, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
@ -601,11 +620,11 @@ export function my_order(callBack, params, load = true) { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**实名认证 */ |
|
|
|
|
export function user_certification(callBack, params, load = true) { |
|
|
|
|
/**访问域名绑定 */ |
|
|
|
|
export function domaininfo(callBack, params, load = true) { |
|
|
|
|
getData( |
|
|
|
|
params.methods, |
|
|
|
|
USERSEVER + '/certification', |
|
|
|
|
USERSEVER + '/domain_info', |
|
|
|
|
params.data, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
@ -616,11 +635,11 @@ export function user_certification(callBack, params, load = true) { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**用户信息修改验证 */ |
|
|
|
|
export function changeInfoFun(callBack, params, load = true) { |
|
|
|
|
/**自定义广告 */ |
|
|
|
|
export function advertinfo(callBack, params, load = true) { |
|
|
|
|
getData( |
|
|
|
|
params.methods, |
|
|
|
|
USERSEVER + '/change', |
|
|
|
|
USERSEVER + '/advert', |
|
|
|
|
params.data, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
@ -631,12 +650,11 @@ export function changeInfoFun(callBack, params, load = true) { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**用户绑定域名*/ |
|
|
|
|
export function domainFun(callBack, params, load = true) { |
|
|
|
|
/**下载码大屏 */ |
|
|
|
|
export function qrcodeinfo(callBack, params, load = true) { |
|
|
|
|
getData( |
|
|
|
|
params.methods, |
|
|
|
|
USERSEVER + '/cname_domain', |
|
|
|
|
USERSEVER + '/qrcode', |
|
|
|
|
params.data, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
@ -647,11 +665,12 @@ export function domainFun(callBack, params, load = true) { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**获取签名任务状态 */ |
|
|
|
|
export function gettask(callBack, params, load = true) { |
|
|
|
|
|
|
|
|
|
/**应用举报 */ |
|
|
|
|
export function appReport(callBack, params, load = true) { |
|
|
|
|
getData( |
|
|
|
|
'GET', |
|
|
|
|
USERSEVER + '/task/' + params.short, |
|
|
|
|
params.methods, |
|
|
|
|
USERSEVER + '/report', |
|
|
|
|
params.data, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
@ -662,12 +681,15 @@ export function gettask(callBack, params, load = true) { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 超级签名相关api
|
|
|
|
|
|
|
|
|
|
/**签名证书 */ |
|
|
|
|
export function developercert(callBack, params, load = true) { |
|
|
|
|
let SIGNSEVER = DOMAIN + '/api/v1/fir/xsign'; |
|
|
|
|
|
|
|
|
|
/** 超级签名--检测该账户是否可开启超级签名 */ |
|
|
|
|
export function checkCanSign(callBack, params, load = false) { |
|
|
|
|
getData( |
|
|
|
|
params.methods, |
|
|
|
|
USERSEVER + '/supersign/cert', |
|
|
|
|
SIGNSEVER + '/cansign', |
|
|
|
|
params.data, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
@ -678,11 +700,11 @@ export function developercert(callBack, params, load = true) { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**微信用户绑定 */ |
|
|
|
|
export function wxutils(callBack, params, load = true) { |
|
|
|
|
/** 苹果签名应用操作 */ |
|
|
|
|
export function appSignInfo(callBack, params, load = true) { |
|
|
|
|
getData( |
|
|
|
|
params.methods, |
|
|
|
|
USERSEVER + '/twx/info', |
|
|
|
|
SIGNSEVER + '/signinfo/' + params.app_id, |
|
|
|
|
params.data, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
@ -693,11 +715,11 @@ export function wxutils(callBack, params, load = true) { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**访问域名绑定 */ |
|
|
|
|
export function domaininfo(callBack, params, load = true) { |
|
|
|
|
/**签名账单 */ |
|
|
|
|
export function DeviceBillInfo(callBack, params, load = true) { |
|
|
|
|
getData( |
|
|
|
|
params.methods, |
|
|
|
|
USERSEVER + '/domain_info', |
|
|
|
|
SIGNSEVER + '/bill', |
|
|
|
|
params.data, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
@ -708,11 +730,11 @@ export function domaininfo(callBack, params, load = true) { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**自定义广告 */ |
|
|
|
|
export function advertinfo(callBack, params, load = true) { |
|
|
|
|
/**设备流转账单 */ |
|
|
|
|
export function DeviceTransferBillInfo(callBack, params, load = true) { |
|
|
|
|
getData( |
|
|
|
|
params.methods, |
|
|
|
|
USERSEVER + '/advert', |
|
|
|
|
SIGNSEVER + '/devicebill', |
|
|
|
|
params.data, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
@ -723,11 +745,11 @@ export function advertinfo(callBack, params, load = true) { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**下载码大屏 */ |
|
|
|
|
export function qrcodeinfo(callBack, params, load = true) { |
|
|
|
|
/**签名下载排行 */ |
|
|
|
|
export function DeviceRankInfo(callBack, params, load = true) { |
|
|
|
|
getData( |
|
|
|
|
params.methods, |
|
|
|
|
USERSEVER + '/qrcode', |
|
|
|
|
SIGNSEVER + '/rank', |
|
|
|
|
params.data, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
@ -738,11 +760,11 @@ export function qrcodeinfo(callBack, params, load = true) { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**签名账单 */ |
|
|
|
|
export function DeviceBillInfo(callBack, params, load = true) { |
|
|
|
|
/**开发绑定应用*/ |
|
|
|
|
export function developerBindAppFun(callBack, params, load = true) { |
|
|
|
|
getData( |
|
|
|
|
params.methods, |
|
|
|
|
USERSEVER + '/supersign/bill', |
|
|
|
|
SIGNSEVER + '/bind', |
|
|
|
|
params.data, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
@ -753,11 +775,12 @@ export function DeviceBillInfo(callBack, params, load = true) { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**设备流转账单 */ |
|
|
|
|
export function DeviceTransferBillInfo(callBack, params, load = true) { |
|
|
|
|
|
|
|
|
|
/**超级签名 苹果开发者信息 */ |
|
|
|
|
export function iosdeveloper(callBack, params, load = true) { |
|
|
|
|
getData( |
|
|
|
|
params.methods, |
|
|
|
|
USERSEVER + '/supersign/devicebill', |
|
|
|
|
SIGNSEVER + '/developer', |
|
|
|
|
params.data, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
@ -768,11 +791,11 @@ export function DeviceTransferBillInfo(callBack, params, load = true) { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**签名下载排行 */ |
|
|
|
|
export function DeviceRankInfo(callBack, params, load = true) { |
|
|
|
|
/**超级签名 设备消耗信息 */ |
|
|
|
|
export function iosdevices(callBack, params, load = true) { |
|
|
|
|
getData( |
|
|
|
|
params.methods, |
|
|
|
|
USERSEVER + '/supersign/rank', |
|
|
|
|
SIGNSEVER + '/devices', |
|
|
|
|
params.data, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
@ -783,11 +806,12 @@ export function DeviceRankInfo(callBack, params, load = true) { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**开发绑定应用*/ |
|
|
|
|
export function developerBindAppFun(callBack, params, load = true) { |
|
|
|
|
/**超级签名 设备udid信息 */ |
|
|
|
|
export function iosdevicesudid(callBack, params, load = true) { |
|
|
|
|
// eslint-disable-next-line no-console
|
|
|
|
|
getData( |
|
|
|
|
params.methods, |
|
|
|
|
USERSEVER + '/supersign/bind', |
|
|
|
|
SIGNSEVER + '/udid', |
|
|
|
|
params.data, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
@ -798,11 +822,12 @@ export function developerBindAppFun(callBack, params, load = true) { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**应用举报 */ |
|
|
|
|
export function appReport(callBack, params, load = true) { |
|
|
|
|
/**超级签名 苹果开发设备udid信息 */ |
|
|
|
|
export function iosudevices(callBack, params, load = true) { |
|
|
|
|
// eslint-disable-next-line no-console
|
|
|
|
|
getData( |
|
|
|
|
params.methods, |
|
|
|
|
USERSEVER + '/report', |
|
|
|
|
SIGNSEVER + '/udevices', |
|
|
|
|
params.data, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
@ -812,3 +837,18 @@ export function appReport(callBack, params, load = true) { |
|
|
|
|
true |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**签名证书 */ |
|
|
|
|
export function developercert(callBack, params, load = true) { |
|
|
|
|
getData( |
|
|
|
|
params.methods, |
|
|
|
|
SIGNSEVER + '/cert', |
|
|
|
|
params.data, |
|
|
|
|
data => { |
|
|
|
|
callBack(data); |
|
|
|
|
}, |
|
|
|
|
load, |
|
|
|
|
true, |
|
|
|
|
true |
|
|
|
|
); |
|
|
|
|
} |