|
@@ -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);
|