正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -35,7 +35,7 @@ userController.prototype.addUser = async(ctx, next) =>{ | @@ -35,7 +35,7 @@ userController.prototype.addUser = async(ctx, next) =>{ | ||
35 | }else if(!params.userName){ | 35 | }else if(!params.userName){ |
36 | return status.paramError('userName','不能为空'); | 36 | return status.paramError('userName','不能为空'); |
37 | } | 37 | } |
38 | - pw = saitMd5.md5AddSalt('123456') | 38 | + pw = saitMd5.md5('123456') |
39 | params.loginName = Math.random().toString(24).substr(9); | 39 | params.loginName = Math.random().toString(24).substr(9); |
40 | }else if(params.userRole == 4){ | 40 | }else if(params.userRole == 4){ |
41 | if(!params.userMobile){ | 41 | if(!params.userMobile){ |
-
请 注册 或 登录 后发表评论