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

Commit ab3243fb authored by 胡佳晨's avatar 胡佳晨

添加 支付成功接口

parent daad7a3d
......@@ -73,7 +73,14 @@ public class GoblinStoreZhengzaiController {
@PostMapping("paySuccess")
@ApiOperation("支付成功")
@ApiResponse(code = 200, message = "接口返回对象参数")
public String syncOrder(@ModelAttribute @Valid SyncOrderParam syncOrderParam) {
return goblinOrderService.syncOrder(syncOrderParam);
public ResponseDto<Boolean> syncOrder(@ModelAttribute @Valid SyncOrderParam syncOrderParam) {
if (!syncOrderParam.getPaymentType().equals("huifu") || !syncOrderParam.getCode().equals("code")) {
return ResponseDto.failure();
}
String result = goblinOrderService.syncOrder(syncOrderParam);
if (result.equals("success")) {
return ResponseDto.success();
}
return ResponseDto.failure();
}
}
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