fix 订单详细报错的bug

feat 公众号登录的时候指定终端为2
feat 获取openid 的时候忽略终端条件
This commit is contained in:
damonyuan 2024-11-15 14:18:29 +08:00
parent 68fc947d81
commit e72b661ed7
3 changed files with 6 additions and 6 deletions

View File

@ -91,9 +91,9 @@ public class LoginController {
public AjaxResult<LoginTokenVo> oaLogin(@Validated @RequestBody LoginCodeValidate loginCodeValidate) {
Integer terminal = ClientEnum.OA.getCode();
String code = loginCodeValidate.getCode();
if (StringUtils.isNull(loginCodeValidate.getTerminal())) {
terminal = LikeFrontThreadLocal.getTerminal();
}
// if (StringUtils.isNull(loginCodeValidate.getTerminal())) {
// terminal = LikeFrontThreadLocal.getTerminal();
// }
LoginTokenVo vo = iLoginService.officeLogin(code, terminal);
return AjaxResult.success(vo);
}

View File

@ -52,8 +52,8 @@ public class PayController {
@GetMapping("/payStatus")
@ApiOperation(("支付状态"))
public AjaxResult<PayStatusVo> payStatus(@Validated @NotNull(message = "from参数丢失") @RequestParam String from,
@Validated @NotNull(message = "orderId参数丢失") @RequestParam Integer orderId) {
PayStatusVo vo = iPayService.payStatus(from, orderId);
@Validated @NotNull(message = "orderId参数丢失") @RequestParam Integer order_id) {
PayStatusVo vo = iPayService.payStatus(from, order_id);
return AjaxResult.success(vo);
}

View File

@ -420,7 +420,7 @@ public class LoginServiceImpl implements ILoginService {
UserAuth auth = userAuthMapper.selectOne(
new QueryWrapper<UserAuth>()
.eq("openid", openId)
.eq("terminal", terminal)
//.eq("terminal", terminal)
.last("limit 1"));
// 创建授权