Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
IPC-footer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Allen Bai
IPC-footer
Commits
eb24e074
Commit
eb24e074
authored
Mar 09, 2021
by
Allen Bai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改
parent
c6d55a01
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
index.ts
src/index.ts
+5
-5
No files found.
src/index.ts
View file @
eb24e074
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment