Commit eb24e074 authored by Allen Bai's avatar Allen Bai

feat: 修改

parent c6d55a01
......@@ -45,22 +45,22 @@ function getRequestUrl(env: string) {
}
switch (env) {
case 'test':
return 'https://activity.tuiatest.cn/land/getIcpInfo'
return 'https://ipua.tuia.cn/domainUrl/detail?debtId=100&debtSign=md5debtKeyAnddomainUrl'
case 'pre':
return 'https://activity.tuiapre.cn/land/getIcpInfo'
return 'https://ipua.tuia.cn/domainUrl/detail?debtId=100&debtSign=md5debtKeyAnddomainUrl'
default:
return 'https://activity.tuia.cn/land/getIcpInfo'
return 'https://ipua.tuia.cn/domainUrl/detail?debtId=100&debtSign=md5debtKeyAnddomainUrl'
}
}
function getIPCByDomain(domain: string, env: string) {
return new Promise((resolve, reject) => {
request({
url: `${getRequestUrl(env)}?domain=${encodeURIComponent(domain)}`,
url: `${getRequestUrl(env)}&domainUrl=${encodeURIComponent(domain)}`,
method: 'GET',
success(res) {
console.log('当前域名的IPC备案为', res)
resolve(res)
resolve(res || res.domainBeianInfo)
},
error(err) {
reject(err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment