bug
This commit is contained in:
parent
28487b8e98
commit
1293b64981
@ -1,4 +1,4 @@
|
|||||||
package cn.com.tenlion.operator.controller.app.api.systemuser;
|
package cn.com.tenlion.operator.controller.api.systemuser;
|
||||||
|
|
||||||
import cn.com.tenlion.operator.service.quick.login.QuickLoginService;
|
import cn.com.tenlion.operator.service.quick.login.QuickLoginService;
|
||||||
import ink.wgink.annotation.CheckRequestBodyAnnotation;
|
import ink.wgink.annotation.CheckRequestBodyAnnotation;
|
||||||
@ -22,8 +22,8 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
*/
|
*/
|
||||||
@Api(tags = ISystemConstant.API_TAGS_APP_PREFIX + "快速登录接口")
|
@Api(tags = ISystemConstant.API_TAGS_APP_PREFIX + "快速登录接口")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping(ISystemConstant.APP_PREFIX + "/quick/login")
|
@RequestMapping(ISystemConstant.API_PREFIX + "/quick/login")
|
||||||
public class QuickLoginAppController {
|
public class QuickLoginController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ISmsService smsService;
|
private ISmsService smsService;
|
@ -39,13 +39,13 @@ public class QuickLoginService extends DefaultBaseService {
|
|||||||
*/
|
*/
|
||||||
public String saveAndLogin(RegisterPhoneVO registerPhoneVO) {
|
public String saveAndLogin(RegisterPhoneVO registerPhoneVO) {
|
||||||
UserPO userPO = userService.getPOByUsername(registerPhoneVO.getPhone());
|
UserPO userPO = userService.getPOByUsername(registerPhoneVO.getPhone());
|
||||||
if (userPO == null) {
|
|
||||||
LOG.debug("用户不存在,注册用户");
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
registerService.registerPhone(registerPhoneVO, new HashMap<String, Object>() {{
|
if (userPO == null) {
|
||||||
put("userRole", EnvManager.value("NORMAL_USER_ROLE_ID"));
|
LOG.debug("用户不存在,注册用户");
|
||||||
}});
|
registerService.registerPhone(registerPhoneVO, new HashMap<String, Object>() {{
|
||||||
|
put("userRole", EnvManager.value("NORMAL_USER_ROLE_ID"));
|
||||||
|
}});
|
||||||
|
}
|
||||||
AppLoginPhoneVO appLoginPhoneVO = new AppLoginPhoneVO();
|
AppLoginPhoneVO appLoginPhoneVO = new AppLoginPhoneVO();
|
||||||
appLoginPhoneVO.setUsername(registerPhoneVO.getPhone());
|
appLoginPhoneVO.setUsername(registerPhoneVO.getPhone());
|
||||||
return appSignService.phoneSign(appLoginPhoneVO);
|
return appSignService.phoneSign(appLoginPhoneVO);
|
||||||
|
Loading…
Reference in New Issue
Block a user