微调
This commit is contained in:
@@ -85,9 +85,13 @@ public class AppUserController extends BaseController {
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON, operateType = OperateType.ADD)
|
||||
@PostMapping("autoLogin")
|
||||
@ApiOperation("app用户注册完自动登录")
|
||||
public HttpResult<Object> autoLogin() {
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "phone", value = "手机号", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "devCode", value = "设备码", required = true, paramType = "query")
|
||||
})
|
||||
public HttpResult<Object> autoLogin(@Param("phone") String phone,@Param("devCode") String devCode) {
|
||||
String methodDescribe = getMethodDescribe("autoLogin");
|
||||
Object object = appUserService.autoLogin();
|
||||
Object object = appUserService.autoLogin(phone,devCode);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, object, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ public interface IAppUserService {
|
||||
/**
|
||||
* 手机app注册完自动登录
|
||||
*/
|
||||
Object autoLogin();
|
||||
Object autoLogin(String phone, String devCode);
|
||||
|
||||
/**
|
||||
* 用户设置密码
|
||||
|
||||
@@ -199,13 +199,11 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper, User> impleme
|
||||
appInfoSet.setSystemInfo(1);
|
||||
appInfoSet.setHarmonicInfo(1);
|
||||
appInfoSetService.save(appInfoSet);
|
||||
redisUtil.saveByKeyWithExpire("autoLogin",phone,5L);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object autoLogin() {
|
||||
String phone = redisUtil.getStringByKey("autoLogin");
|
||||
public Object autoLogin(String phone, String devCode) {
|
||||
//发送密码短信
|
||||
//sendPasswordMessage(phone,newUser.getId());
|
||||
//获取登录信息
|
||||
|
||||
Reference in New Issue
Block a user