Commit 4e48b817 by lixinming

no message

parent d81bab29
......@@ -11,6 +11,12 @@ import { BizError } from "../../util/bizError";
const md5 = require("md5");
//登录
/**
*
* @param uscc
* @param pwd
* @returns
*/
export async function login(uscc:string, pwd:string) {
if (typeof uscc != "string" || typeof pwd != "string") throw new BizError(ERRORENUM.参数错误, uscc, pwd);
let fuhuaqiInfo = await fuhuaqiData.findFuHuaQiByUSCC(uscc);
......@@ -30,7 +36,7 @@ export async function login(uscc:string, pwd:string) {
//退出登录
export async function logout(uscc:string) {
export async function logout(uscc:string):Promise<object> {
if (typeof uscc != "string") throw new BizError(ERRORENUM.参数错误, uscc);
let fuhuaqiInfo = await fuhuaqiData.findFuHuaQiByUSCC(uscc);
await fuhuaqiInfo.save();
......
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