diff --git a/controller/userController.js b/controller/userController.js index d7a5091..dc87c18 100644 --- a/controller/userController.js +++ b/controller/userController.js @@ -35,7 +35,7 @@ userController.prototype.addUser = async(ctx, next) =>{ }else if(!params.userName){ return status.paramError('userName','不能为空'); } - pw = saitMd5.md5AddSalt('123456') + pw = saitMd5.md5('123456') params.loginName = Math.random().toString(24).substr(9); }else if(params.userRole == 4){ if(!params.userMobile){