|
@@ -16,6 +16,7 @@ import com.yunzhi.niucai.entity.TaShopApp;
|
16
|
16
|
import com.yunzhi.niucai.service.ITaShopAppService;
|
17
|
17
|
import io.swagger.annotations.Api;
|
18
|
18
|
import io.swagger.annotations.ApiOperation;
|
|
19
|
+import io.swagger.annotations.ApiParam;
|
19
|
20
|
import org.slf4j.Logger;
|
20
|
21
|
import org.slf4j.LoggerFactory;
|
21
|
22
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -60,7 +61,7 @@ public class TaAlipayController extends BaseController {
|
60
|
61
|
*/
|
61
|
62
|
@PostMapping("/api/app/alipay/order")
|
62
|
63
|
@ApiOperation(value = "创建订单", notes = "创建订单", httpMethod = "POST", response = ResponseBean.class)
|
63
|
|
- public ResponseBean create(HttpServletRequest request, @RequestBody TaOrder taOrder) throws Exception {
|
|
64
|
+ public ResponseBean create(HttpServletRequest request,@ApiParam("下单记录") @RequestBody TaOrder taOrder) throws Exception {
|
64
|
65
|
boolean res = aliPayService.orderPaying(taOrder);
|
65
|
66
|
if (res) {
|
66
|
67
|
return ResponseBean.success("success");
|
|
@@ -69,6 +70,12 @@ public class TaAlipayController extends BaseController {
|
69
|
70
|
}
|
70
|
71
|
}
|
71
|
72
|
|
|
73
|
+ @GetMapping("/api/app/alipay/result")
|
|
74
|
+ @ApiOperation(value = "查询支付状态", notes = "查询支付状态", httpMethod = "GET", response = ResponseBean.class)
|
|
75
|
+ public ResponseBean getPayResult(@ApiParam("订单号") @RequestParam String orderId) {
|
|
76
|
+ return ResponseBean.success("");
|
|
77
|
+ }
|
|
78
|
+
|
72
|
79
|
/**
|
73
|
80
|
* 支付成功回调
|
74
|
81
|
* @param request
|