Browse Source

fix bug

release_toaliyun_real
xiaohanzi 5 years ago
parent
commit
9878c01ac0
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      mallinkCApi/src/main/java/com/iformall/controller/WxCarController.java

+ 4
- 1
mallinkCApi/src/main/java/com/iformall/controller/WxCarController.java View File

@@ -113,6 +113,9 @@ public class WxCarController extends BaseController {
} catch (Exception e) { } catch (Exception e) {
return new ResultData(Result.ERROR,e.getMessage()); return new ResultData(Result.ERROR,e.getMessage());
} }
if (null == park) {
return new ResultData(Result.ERROR,"当前租户park不支持");
}
if (park.getVendorType().equals(EnumCarVendor.CAR_ETCP.getCode())) { if (park.getVendorType().equals(EnumCarVendor.CAR_ETCP.getCode())) {
return etcpHelper.initForEtcp(paramMap, memberId, park); return etcpHelper.initForEtcp(paramMap, memberId, park);
}else { }else {
@@ -390,7 +393,7 @@ public class WxCarController extends BaseController {
public ResultData getParkStatus() { public ResultData getParkStatus() {
/// 1, get mall's park /// 1, get mall's park
WxPark park = getCurrentPark(getTenantInfo()); WxPark park = getCurrentPark(getTenantInfo());
if (park.getVendorType() == EnumCarVendor.CAR_ETCP.getCode()) {
if (null != park && park.getVendorType() == EnumCarVendor.CAR_ETCP.getCode()) {
ResultData e = etcpHelper.etcpParkStatus(park); ResultData e = etcpHelper.etcpParkStatus(park);
if (e != null) return e; if (e != null) return e;
} }


Loading…
Cancel
Save