Browse Source

a版本同步

suochencheng 6 years ago
parent
commit
977b1f1e5e
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/main/java/com/izouma/weixin/web/LeYunFuController.java

+ 5 - 1
src/main/java/com/izouma/weixin/web/LeYunFuController.java

@@ -302,7 +302,11 @@ public class LeYunFuController {
             String base64encodedString = Base64.getEncoder().encodeToString(paramsStr.getBytes("utf-8"));
             String base64encodedString = Base64.getEncoder().encodeToString(paramsStr.getBytes("utf-8"));
             System.out.println("Base64 编码字符串 (URL) :" + base64encodedString);
             System.out.println("Base64 编码字符串 (URL) :" + base64encodedString);
 
 
-            return new Result(true, URLEncoder.encode(base64encodedString, "utf-8"));
+            Map<String, String> result = new TreeMap<>();
+            result.put("data", URLEncoder.encode(base64encodedString, "utf-8"));
+            result.put("id", wxpayTemp.getId() + "");
+
+            return new Result(true, result);
 
 
         } catch (Exception e) {
         } catch (Exception e) {
             logger.error("leyunfu下单失败", e);
             logger.error("leyunfu下单失败", e);