Browse Source

fix bug

release_toaliyun_real
xiaohanzi 4 years ago
parent
commit
163a0b7501
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      mallinkService/src/main/java/com/iformall/service/park/impl/haikangweishi/HaiKangWeiShiParkService.java
  2. +3
    -3
      mallinkService/src/main/java/com/iformall/service/park/impl/haikangweishi/HaiKangWeiShiUtil.java

+ 1
- 1
mallinkService/src/main/java/com/iformall/service/park/impl/haikangweishi/HaiKangWeiShiParkService.java View File

@@ -106,7 +106,7 @@ public class HaiKangWeiShiParkService extends BaseParkService implements ParkAda
Map retMap = new HashMap();
try {
JSONObject retObj = haikang.subscription(park, getCacheToken(park),haikang.getAuthorization(park,getCacheToken(park)));
if (retObj.getIntValue("code") == 0){
if (retObj.getString("code").equals("0")){
return new ResultData();
}else {
logger.error("haikangweishi parkInitConfig error. haikangResult: {}",retObj);


+ 3
- 3
mallinkService/src/main/java/com/iformall/service/park/impl/haikangweishi/HaiKangWeiShiUtil.java View File

@@ -60,7 +60,7 @@ public class HaiKangWeiShiUtil {
public static final String AUTHROZITAION = "https://open.hikyun.com/artemis/api/eits/v1/login";
public static final String GET_FEE = "https://open.hikyun.com/api/pmsc/v1/pay/ quickGetVehicleBill";
public static final String COUPON_USE = "https://open.hikyun.com/api/pmsc/v1/coupon/addition";
public static final String SUBSCRIPTION = "https://open.hikyun.com/api/pmsc/v1/sub/subscription";
public static final String SUBSCRIPTION = "https://open.hikyun.com/artemis/api/pmsc/v1/sub/subscription";

/**
@@ -265,7 +265,7 @@ public class HaiKangWeiShiUtil {
Map<String,Object> params = new HashMap<String,Object>();
params.put("partnerAppKey", vp.getString("ak"));//商户编号
params.put("projectId", vp.getString("projectId"));
params.put("eventTypes", "[\"771760131\",\"771760134\"]");
params.put("eventTypes", new Integer[] {771760131,771760134});
params.put("subUrl", vp.getString("subUrl"));
String retCode = ProcBussiness(SUBSCRIPTION, params,token,Authrozitaion);
if (StringUtils.isBlank(retCode)) {
@@ -278,7 +278,7 @@ public class HaiKangWeiShiUtil {
throw new MallinkException(errStatus,"haikang subscription error.["+result.getString("error")+"]"+result.getString("message"));
}
if (!result.getString("code").equals("200") ) {
if (!result.getString("code").equals("0") ) {
String message = result.getString("msg");
throw new MallinkException(result.getInteger("code"), "haikang subscription error."+message);
}


Loading…
Cancel
Save