Commit 40f5e6e8 by lixinming

no message

parent c7047303
...@@ -241,7 +241,9 @@ export async function unitMemberRegister3({application, userId}) { ...@@ -241,7 +241,9 @@ export async function unitMemberRegister3({application, userId}) {
export async function registerFlowType({userId}) { export async function registerFlowType({userId}) {
let oldInfo = await findOnce(TABLEENUM.用户表, {userId, isAdmin:STATE.}, ["userId", "registerFlow", "userRegisterState", "memberType"]); let oldInfo = await findOnce(TABLEENUM.用户表, {userId, isAdmin:STATE.}, ["userId", "registerFlow", "userRegisterState", "memberType"]);
if (!oldInfo || !oldInfo.userId) throw new BizError(ERRORENUM.目标数据不存在); if (!oldInfo || !oldInfo.userId) throw new BizError(ERRORENUM.目标数据不存在);
if (oldInfo.userRegisterState == USERREGISTERSTATE.通过) throw new BizError(ERRORENUM.用户已注册成功); if (oldInfo.userRegisterState == USERREGISTERSTATE.通过) {
return {code:601, msg:"用户已注册"}
}
let dataInfo:any = extractData(oldInfo, ["userId", "registerFlow", "userRegisterState", "memberType"]); let dataInfo:any = extractData(oldInfo, ["userId", "registerFlow", "userRegisterState", "memberType"]);
......
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