Commit eb24e074 authored by Allen Bai's avatar Allen Bai

feat: 修改

parent c6d55a01
...@@ -45,22 +45,22 @@ function getRequestUrl(env: string) { ...@@ -45,22 +45,22 @@ function getRequestUrl(env: string) {
} }
switch (env) { switch (env) {
case 'test': case 'test':
return 'https://activity.tuiatest.cn/land/getIcpInfo' return 'https://ipua.tuia.cn/domainUrl/detail?debtId=100&debtSign=md5debtKeyAnddomainUrl'
case 'pre': case 'pre':
return 'https://activity.tuiapre.cn/land/getIcpInfo' return 'https://ipua.tuia.cn/domainUrl/detail?debtId=100&debtSign=md5debtKeyAnddomainUrl'
default: 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) { function getIPCByDomain(domain: string, env: string) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
request({ request({
url: `${getRequestUrl(env)}?domain=${encodeURIComponent(domain)}`, url: `${getRequestUrl(env)}&domainUrl=${encodeURIComponent(domain)}`,
method: 'GET', method: 'GET',
success(res) { success(res) {
console.log('当前域名的IPC备案为', res) console.log('当前域名的IPC备案为', res)
resolve(res) resolve(res || res.domainBeianInfo)
}, },
error(err) { error(err) {
reject(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