소스 검색

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

bilingfeng 2 년 전
부모
커밋
d971f309e8
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      game-module/game-sdk/src/main/java/com/zanxiang/sdk/service/pay/MiPay2Service.java

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