签章流程

This commit is contained in:
2023-11-17 13:50:18 +08:00
parent 1358e52fdb
commit 715859c63f
72 changed files with 8660 additions and 339 deletions
@@ -31,7 +31,9 @@ module.exports = {
inviteCode,
myInviteCode,
needPermission,
accountType
accountType,
company,
person
} = data;
res = await uniID.loginBySms({
mobile,
@@ -50,10 +52,14 @@ module.exports = {
// 注册法大大
if(res.type === "register") {
const fadadaRes = await pubFun.fadada('account_register.api', {
open_id: res.uid,
account_type: accountType,
open_id: res.uid + 'fdd',
account_type: accountType + '',
})
console.log('fadadaRes: ',{
open_id: res.uid + 'fdd',
account_type: accountType + '',
});
console.log('fadadaRes: ',fadadaRes);
if(fadadaRes.code == 1) {
await vk.baseDao.update({
dbName: "uni-id-users",
@@ -61,25 +67,24 @@ module.exports = {
_id: res.uid
},
dataJson: {
fadadaCustomerId: fadadaRes.data
fadadaCustomerId: fadadaRes.data,
quoteTimes: 0,
person,
company,
accountType: accountType,
nickname: accountType == 1?person.personName: company.companyName,
}
});
}else {
vk.baseDao.del({
dbName: "uni-id-users",
whereJson: {
_id: res.uid
},
})
}
}
let mobileStr = mobile.substring(7);
await vk.baseDao.update({
dbName: "uni-id-users",
whereJson: {
_id: res.uid,
nickname: null
},
dataJson: {
nickname: `手机尾号${mobileStr}用户`,
accountType: accountType
}
});
// 日志服务
const loginLogService = vk.require("service/user/util/login_log");
await loginLogService.add({