Commit 5f52e95c by zhiwj

短信

parent 22d51e6e
......@@ -36,10 +36,11 @@ public class AuthCodeController {
@RequestMapping("send-auth-code")
public RestResponse sendAuthCode(Integer eid){
if(eid == null){
return RestResponse.failure(ErrorCode.NOTEXISTS.getCode(), "商户不存在");
}
// if(eid == null){
// return RestResponse.failure(ErrorCode.NOTEXISTS.getCode(), "商户不存在");
// }
Integer enterpriseId = UserDetailUtils.getUserDetail().getEnterpriseId();
eid = enterpriseId;
String code = CreateRandomUtils.getStringRandom(4);
AuthCodeDTO authCodeDTO = new AuthCodeDTO();
authCodeDTO.setAuthCode(code);
......
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