Commit 22bafc1b by 王昆

gbs

parent dea4d678
......@@ -150,10 +150,10 @@ class CWxSignApiCtl extends CtlBase {
return checkParamsRes;
}
// 要素认证
let authRes = await this.doAuth(params, api);
if (authRes.status != 0) {
return authRes;
}
// let authRes = await this.doAuth(params, api);
// if (authRes.status != 0) {
// return authRes;
// }
// 插入数据库
let signInfo = {
......@@ -192,6 +192,7 @@ class CWxSignApiCtl extends CtlBase {
idName: encodeURIComponent(encodeURIComponent(signInfo.id_name)),
openId: signInfo.openId,
mobile: signInfo.mobile,
idNo: signInfo.id_no,
bankNo: signInfo.bank_no
};
......@@ -205,7 +206,8 @@ class CWxSignApiCtl extends CtlBase {
}
let urlParams = signArr.join("&");
let sign = md5(urlParams + "&key=" + api.app_secret).toUpperCase();
return `${api.redirect_url}?${urlParams}&sign=${sign}`;
console.log(urlParams, sign);
return `${api.redirect_url}?${urlParams}&idName=${p.idName}&sign=${sign}`;
}
async checkParams(params, api) {
......
......@@ -172,14 +172,14 @@ var app = new Vue({
mobile: this.params.mobile || "",
};
localStorage.setItem("aggreement_params", JSON.stringify(p));
window.location.href = "http://127.0.0.1:3333/bpowxsignaggreement2";
window.location.href = "https://bpohhr.gongsibao.com/bpowxsignaggreement2";
} else {
let p = {
nameA: this.apiInfo.companyName,
name: this.params.idName || ""
};
localStorage.setItem("aggreement_params", JSON.stringify(p));
window.location.href = "http://127.0.0.1:3333/bpowxsignaggreement3";
window.location.href = "https://bpohhr.gongsibao.com/bpowxsignaggreement3";
}
},
subform() {
......
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