Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust_web
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
cust_web
Commits
cab9b5b2
Commit
cab9b5b2
authored
Mar 04, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了返回判断
parent
8342afc7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
realAuth.html
public/realAuth.html
+7
-1
No files found.
public/realAuth.html
View file @
cab9b5b2
...
...
@@ -66,12 +66,18 @@
const
params
=
new
URLSearchParams
(
urlObj
.
search
);
// 获取uniapp用户的token
var
token
=
params
.
get
(
'token'
);
// 替换'token'为实际参数名
var
userId
=
params
.
get
(
'userId'
);
var
memIdcard
=
params
.
get
(
'memIdcard'
);
var
memRealName
=
params
.
get
(
'memRealName'
);
console
.
log
(
'Token:'
,
token
);
// 在调用实人认证服务端发起认证请求时需要传入该MetaInfo值
var
MetaInfoChildren
=
window
.
getMetaInfo
();
console
.
log
(
'MetaInfo:'
,
MetaInfo
)
var
MetaInfo
=
{
metaInfo
:
JSON
.
stringify
(
MetaInfoChildren
),
userId
:
userId
,
memIdcard
:
memIdcard
,
memRealName
:
memRealName
}
console
.
log
(
'JSON.stringify(MetaInfo):'
,
JSON
.
stringify
(
MetaInfo
))
// 请求认证业务接口获取CertifyUrl
...
...
@@ -89,7 +95,7 @@
console
.
log
(
'data:'
,
data
)
if
(
data
.
code
==
200
){
window
.
location
.
href
=
data
.
data
.
certifyUrl
;
}
else
if
(
data
.
code
==
null
||
data
.
code
==
'null'
)
{
}
else
{
//向小程序发送信息
wx
.
miniProgram
.
postMessage
({
data
:
data
.
message
})
//回退页面 不能使用别的 否则会有问题
...
...
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