提交修改
This commit is contained in:
parent
b6804a43d6
commit
6c65f4ca41
@ -0,0 +1,48 @@
|
|||||||
|
package com.heyu.api.controller.vv;
|
||||||
|
|
||||||
|
|
||||||
|
import com.heyu.api.common.annotation.Describe;
|
||||||
|
import com.heyu.api.data.dao.vv.VvTradeOrderDao;
|
||||||
|
import com.heyu.api.jsapi.JsapiPrepay;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/app/weixin")
|
||||||
|
public class AppWeiXinCustomerNotifyController {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// 微信支付APIv3密钥
|
||||||
|
@Value("${eb.config.weixin.pay.apiv3key}")
|
||||||
|
private String apiv3key;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private VvTradeOrderDao tradeOrderDao;
|
||||||
|
|
||||||
|
@Value("${eb.config.weixin.pay.mchid}")
|
||||||
|
private String mchid;
|
||||||
|
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private JsapiPrepay jsapiPrepay;
|
||||||
|
|
||||||
|
@Describe("微信支付回调")
|
||||||
|
@PostMapping("/customer/notify")
|
||||||
|
public String customerNotify(@RequestBody String requestBody) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return "sucess";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user