Ver código fonte

feat : 米大师支付2.0调试修改

bilingfeng 1 ano atrás
pai
commit
d971f309e8

+ 2 - 2
game-module/game-sdk/src/main/java/com/zanxiang/sdk/service/pay/MiPay2Service.java

@@ -120,7 +120,7 @@ public class MiPay2Service extends PayBaseService {
     private Long midasGetBalance(String openId, String sessionKey) {
     private Long midasGetBalance(String openId, String sessionKey) {
         //接口参数
         //接口参数
         Map<String, Object> postBodyMap = new HashMap<>(5);
         Map<String, Object> postBodyMap = new HashMap<>(5);
-        postBodyMap.put("offer_id", config.getAppId());
+        postBodyMap.put("offer_id", config.getOfferId());
         postBodyMap.put("openid", openId);
         postBodyMap.put("openid", openId);
         postBodyMap.put("ts", System.currentTimeMillis() / 1000);
         postBodyMap.put("ts", System.currentTimeMillis() / 1000);
         postBodyMap.put("zone_id", "1");
         postBodyMap.put("zone_id", "1");
@@ -147,7 +147,7 @@ public class MiPay2Service extends PayBaseService {
         //接口参数
         //接口参数
         Map<String, Object> postBodyMap = new HashMap<>(7);
         Map<String, Object> postBodyMap = new HashMap<>(7);
         postBodyMap.put("openid", openId);
         postBodyMap.put("openid", openId);
-        postBodyMap.put("offer_id", config.getAppId());
+        postBodyMap.put("offer_id", config.getOfferId());
         postBodyMap.put("ts", System.currentTimeMillis() / 1000);
         postBodyMap.put("ts", System.currentTimeMillis() / 1000);
         postBodyMap.put("zone_id", "1");
         postBodyMap.put("zone_id", "1");
         postBodyMap.put("env", this.isSand);
         postBodyMap.put("env", this.isSand);