소스 검색

云闪付

jk-GitHub-coder 3 년 전
부모
커밋
e6e9ce9e0c
1개의 변경된 파일10개의 추가작업 그리고 10개의 파일을 삭제
  1. 10 10
      YijiaRestful/src/main/java/com/platform/yijia/controller/SaoBeiPayController.java

+ 10 - 10
YijiaRestful/src/main/java/com/platform/yijia/controller/SaoBeiPayController.java

@@ -97,9 +97,9 @@ public class SaoBeiPayController {
      * @return
      * @throws Exception
      */
-    @RequestMapping(value = {"/payAmtInfoGzhOld"}, consumes = {"application/json"}, method = {RequestMethod.POST})
+    @RequestMapping(value = {"/yunPayGzh"}, consumes = {"application/json"}, method = {RequestMethod.POST})
     @ResponseBody
-    public String payAmtInfoGzh(@RequestBody PayInfoRequest payInfoRequest) throws Exception {
+    public String yunPayGzh(@RequestBody PayInfoRequest payInfoRequest) throws Exception {
         //智慧易加
 //    商户号码:845104816000034
 //    终端号:18241101
@@ -127,7 +127,7 @@ public class SaoBeiPayController {
         requst.setSub_appid("wxc8189d3b3a7283e0");
         requst.setOpen_id("oJR5R6r4EJhaORFcPap70r_mtFZo");                      //oJR5R6r4EJhaORFcPap70r_mtFZo   //oRwjv4iHjSUgxNxOJOQ_60Ln7cno
         requst.setOrder_body("sdk测试");
-        String notifyUrl = "https://" + this.domainName + "/" + this.globalPrefix + "/getSaobeiGzhCallback";
+        String notifyUrl = "https://" + this.domainName + "/" + this.globalPrefix + "/getYunPayGzhCallback";
         logger.info("回调地址:"+ notifyUrl);
         requst.setNotify_url(notifyUrl);
         //发送请求
@@ -143,10 +143,10 @@ public class SaoBeiPayController {
      * @param jsonObject
      * @return
      */
-    @RequestMapping(value = "/getSaobeiGzhCallback", consumes = "application/json", method = RequestMethod.POST)
+    @RequestMapping(value = "/getYunPayGzhCallback", consumes = "application/json", method = RequestMethod.POST)
     @ResponseBody
     @Transactional
-    public JSONObject getSaobeiGzhCallback(@RequestBody JSONObject jsonObject){
+    public JSONObject getYunPayGzhCallback(@RequestBody JSONObject jsonObject){
         JSONObject result = new JSONObject();       //返回给扫呗状态码
         System.out.println("扫呗调用回调接口返回参数:" + jsonObject);
         if(jsonObject.containsKey("result_code") && jsonObject.get("result_code").toString().equals("01")){
@@ -169,9 +169,9 @@ public class SaoBeiPayController {
      * @return
      * @throws Exception
      */
-    @RequestMapping(value = {"/payAmtInfoOld"}, consumes = {"application/json"}, method = {RequestMethod.POST})
+    @RequestMapping(value = {"/yunPay"}, consumes = {"application/json"}, method = {RequestMethod.POST})
     @ResponseBody
-    public String payAmtInfo(@RequestBody PayInfoRequest payInfoRequest) throws Exception {
+    public String yunPay(@RequestBody PayInfoRequest payInfoRequest) throws Exception {
 
         //智慧易加
 //    商户号码:845104816000034
@@ -201,7 +201,7 @@ public class SaoBeiPayController {
         String openId = payInfoRequest.getOpenId();
         requst.setOpen_id("oJR5R6r4EJhaORFcPap70r_mtFZo");  // oRwjv4iHjSUgxNxOJOQ_60Ln7cno   obnG9jhDLvom5fGwuhYysmQTW4qQ
         requst.setOrder_body("sdk测试");
-        String notifyUrl = "https://" + this.domainName + "/" + this.globalPrefix + "/getSaobeiCallback";
+        String notifyUrl = "https://" + this.domainName + "/" + this.globalPrefix + "/getYunPayCallback";
         logger.info("回调地址"+ notifyUrl);
         requst.setNotify_url(notifyUrl);
         requst.setSub_appid("wxc8189d3b3a7283e0");          //  wxe1135cd390b38a54    wxe568c727d466aef9        智慧易加公众号:wxc8189d3b3a7283e0
@@ -217,10 +217,10 @@ public class SaoBeiPayController {
      * @param jsonObject
      * @return
      */
-    @RequestMapping(value = "/getSaobeiCallback", consumes = "application/json", method = RequestMethod.POST)
+    @RequestMapping(value = "/getYunPayCallback", consumes = "application/json", method = RequestMethod.POST)
     @ResponseBody
     @Transactional
-    public JSONObject getSaobeiCallback(@RequestBody JSONObject jsonObject){
+    public JSONObject getYunPayCallback(@RequestBody JSONObject jsonObject){
         JSONObject result = new JSONObject();       //返回给扫呗状态码
         System.out.println("扫呗调用回调接口返回参数:" + jsonObject);
         if(jsonObject.containsKey("result_code") && jsonObject.get("result_code").toString().equals("01")){