|
@@ -481,13 +481,13 @@ public class UserApiController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
- @ApiOperation(value="保存登陆记录")
|
|
|
|
|
|
|
+ @ApiOperation(value="保存登陆记录(免登陆")
|
|
|
@RequestMapping(value = "saveLoginRecord",method = RequestMethod.POST)
|
|
@RequestMapping(value = "saveLoginRecord",method = RequestMethod.POST)
|
|
|
- public MessageResult<Map> saveLoginRecord(@RequestAttribute String subject){
|
|
|
|
|
|
|
+ public MessageResult<Map> saveLoginRecord(@RequestParam(value="openId",defaultValue="") String openId){
|
|
|
MessageResult<Map> msgResult = new MessageResult<>();
|
|
MessageResult<Map> msgResult = new MessageResult<>();
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
- PersonInfo regUser= personInfoService.get(subject);
|
|
|
|
|
|
|
+ PersonInfo regUser= personInfoService.findByOpenId(openId);
|
|
|
if (regUser != null) {
|
|
if (regUser != null) {
|
|
|
PersonLoginLog personLoginLog = new PersonLoginLog();
|
|
PersonLoginLog personLoginLog = new PersonLoginLog();
|
|
|
personLoginLog.setId(UUID.randomUUID().toString());
|
|
personLoginLog.setId(UUID.randomUUID().toString());
|