Commit a9278292 by lixinming

no message

parent a815b057
......@@ -108,7 +108,7 @@ export async function changePwd({phone, pwd, confirmation, code}) {
*/
export async function memberChangePwdSendCode({phone}) {
let userInfo = await findOnce(TABLEENUM.用户表, {phone}, ["userId"]);
if (!userInfo && !userInfo.userId) throw new BizError(ERRORENUM.不存在该手机号的账号);
if (!userInfo || !userInfo.userId) throw new BizError(ERRORENUM.不存在该手机号的账号);
const NowMs = new Date().valueOf();
let codeSelectParam = { phone, isUse:false, type:CODETYPE.修改密码, sendMs:{"$gt":getTodayMs()} }
let lastCodeInfo = await findOnceToSort(TABLEENUM.验证码表, codeSelectParam, {sendMs:-1});
......
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