Commit ab34cf52 by 王昆

gsb

parent ebf0d4df
......@@ -317,18 +317,23 @@ class BpoSDPJApi {
}
let num = await this.esettleSve.isValidAge([obj.mchtId]);
console.log("---商户年龄限制---", obj.mchtId, num);
if (num) {
let card = await this.idcardClient.cardInfo(obj.id_no);
console.log("---商户年龄限制---cardInfo---", obj.mchtId, num, card);
let age = card.age || 0;
if (!age) {
console.log("---商户年龄限制---age---", age);
return this.getErrResult("身份证号格式错误, 只支持18位身份证号码");
}
if (card.sex == 'male') {
if (age < 18 || age > 60) {
console.log("---商户年龄限制---男性错误---");
return this.getErrResult("签约失败,男限制18-60岁之间")
}
} else {
if (age < 18 || age > 55) {
console.log("---商户年龄限制---女性错误---");
return this.getErrResult("签约失败,女限制18-55岁之间")
}
}
......
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