记得上下班打卡 | git大法好,push需谨慎

Commit e52ecaf4 authored by 姜秀龙's avatar 姜秀龙

Merge remote-tracking branch 'origin/jxl-lixianzhifu' into jxl-lixianzhifu

parents 22a098c4 05cc8f5c
......@@ -20,5 +20,9 @@ public interface IGoblinBraceLetOrderService {
*/
ResponseDto<Integer> checkOrderResult(String orderId);
/**
* 斗拱支付回调
* @return
*/
ResponseDto<Boolean> dougongCallBack();
}
......@@ -39,7 +39,7 @@ public class GoblinBraceletOrderController {
}
@PostMapping("/checkPayment")
@GetMapping("/checkPayment")
@ApiOperation("查询订单状态")
@ApiImplicitParams({
@ApiImplicitParam(type = "form", required = true, dataType = "String", name = "orderId", value = "订单ID", example = "1"),
......
......@@ -245,7 +245,13 @@ public class GoblinBraceLetOrderServiceImpl implements IGoblinBraceLetOrderServi
@Override
public ResponseDto<Integer> checkOrderResult(String orderId) {
return null;
final String uid = CurrentUtil.getCurrentUid();
GoblinBraceletOrderVo braceletOrderVo = goblinRedisUtils.getBraceletOrderVo(uid, orderId);
if (braceletOrderVo == null) {
log.error("订单不存在");
return ResponseDto.failure("订单不存在");
}
return ResponseDto.success(braceletOrderVo.getPayStatus());
}
@Override
......
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