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

Commit 05cc8f5c authored by wangyifan's avatar wangyifan

离线支付-斗拱接口-获取支付状态

parent 1650f26c
......@@ -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