Commit cab9b5b2 authored by liwei's avatar liwei

修改了返回判断

parent 8342afc7
......@@ -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 })
//回退页面 不能使用别的 否则会有问题
......
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