魏熙美 6 anni fa
parent
commit
a208355d23

+ 5
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/WxPayController.java Vedi File

@@ -47,16 +47,19 @@ public class WxPayController {
47 47
 	@ApiOperation(value = "统一下单", notes = "统一下单")
48 48
 	@ApiImplicitParams({
49 49
 			@ApiImplicitParam(paramType = "path", dataType = "Integer", name = "outTradeNo", value = "订单号"),
50
+			@ApiImplicitParam(paramType = "query", dataType = "String", name = "type", value = "订单类型: bill 表示订单,car 车缴费"),
50 51
 			@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token")
51 52
 	})
52 53
 	@RequestMapping(value = "/wxUnifiedOrder/{outTradeNo}",method = RequestMethod.GET)
53
-	public ResponseBean wxUnifiedOrder(@PathVariable("outTradeNo") String outTradeNo, HttpSession session){
54
+	public ResponseBean wxUnifiedOrder(@PathVariable("outTradeNo") String outTradeNo,
55
+									   @RequestParam("type") String type,
56
+									   HttpSession session){
54 57
 		ResponseBean responseBean = new ResponseBean();
55 58
 		UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
56 59
 		
57 60
 		Map<String, String> resp = Maps.newHashMap();
58 61
 		try {
59
-			resp = wxPayService.wxUnifiedOrder(outTradeNo,userElement);
62
+			resp = wxPayService.wxUnifiedOrder(outTradeNo, type,userElement);
60 63
 		} catch (Exception e) {
61 64
 			e.printStackTrace();
62 65
 			responseBean.addError(e.getMessage());