Commit 6f5f1aee by 王昆

gsb

parent aafb0c60
......@@ -259,7 +259,7 @@ class BpoSDPJApi {
return this.getErrResult("提现信息错误");
}
let cashUser = await this.ccashuserSve.findOne({openId: obj.openId});
let cashUser = await this.ccashuserSve.findOne({openId: obj.openId, ecid: cashInfo.ecid});
cashUser = cashUser || {id_name: cashInfo.id_name, id_no: cashInfo.id_no};
let epr = {};
if (cashInfo.ecid) {
......@@ -335,7 +335,8 @@ class BpoSDPJApi {
}
let cashUser = await this.ccashuserSve.findOne({
openId: obj.openId
openId: obj.openId,
ecid: cashInfo.ecid
}) || {};
let doAuthRes = await this.doAuth({
......@@ -348,7 +349,9 @@ class BpoSDPJApi {
}
if (!cashUser.id) {
cashUser = {};
cashUser.cash_id = cashInfo.id;
cashUser.ecid = cashInfo.ecid;
cashUser.id_name = this.trim(obj.id_name);
cashUser.id_no = this.trim(obj.id_no);
cashUser.openId = this.trim(obj.openId);
......
......@@ -7,7 +7,8 @@ module.exports = (db, DataTypes) => {
openId: DataTypes.STRING,
id_name: DataTypes.STRING,
id_no: DataTypes.STRING,
contract_id: DataTypes.STRING,
ecid: DataTypes.INTEGER,
contract_id: DataTypes.INTEGER,
}, {
paranoid: true, //假的删除
underscored: true,
......
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