Commit cf36e6b3 by chenjinjing

no message

parent b5509757
...@@ -22,6 +22,7 @@ import { sendVerificationCode } from "./mail"; ...@@ -22,6 +22,7 @@ import { sendVerificationCode } from "./mail";
export async function enterpriseLogin(phone:string, pwd:string) { export async function enterpriseLogin(phone:string, pwd:string) {
let filesList = ["userName", "eId", "pwd", "uId", "phone"]; let filesList = ["userName", "eId", "pwd", "uId", "phone"];
let userDbData = await selectData(OPERATIONALDATATYPE.查询多个, TABLENAME.企业用户表, { phone }, filesList); let userDbData = await selectData(OPERATIONALDATATYPE.查询多个, TABLENAME.企业用户表, { phone }, filesList);
if (!userDbData.length) throw new BizError(ERRORENUM.账号或密码错误);
let eId = userDbData[0].eId; let eId = userDbData[0].eId;
let enterpriseUserInfo = userDbData[0]; let enterpriseUserInfo = userDbData[0];
// if (userDbData.length > 1) { // if (userDbData.length > 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