Commit 99e313e7 by chenjinjing

no message

parent 76f7a4ee
......@@ -254,7 +254,7 @@ export async function unitMemberRegister3({application, id}) {
export async function registerFlowType({id}) {
if(!id) return {};
let oldInfo = await findOnce(TABLEENUM.用户表, {userId:id, isAdmin:STATE.}, ["userId", "registerFlow", "userRegisterState", "memberType"]);
if (!oldInfo || !oldInfo.userId) throw new BizError(ERRORENUM.目标数据不存在);
if (!oldInfo || !oldInfo.userId) return {code:200, msg:"用户未注册"} //用户不存在不需要报错
if (oldInfo.userRegisterState == USERREGISTERSTATE.通过) {
return {code:601, msg:"用户已注册"}
}
......
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