|
|
|
@@ -44,10 +44,15 @@ import java.util.*; |
|
|
|
@Slf4j |
|
|
|
public class HaiKangWeiShiV2Util { |
|
|
|
|
|
|
|
public static final String TOKEN_URL = "http://api.hikparking.com:9016/artemis/oauth/token"; |
|
|
|
public static final String QUERY_PRICE = "http://api.hikparking.com:9016/artemis/api/v1/charge/getParkingPaymentInfo"; |
|
|
|
public static final String COUPON_USE = "http://api.hikparking.com:9016/artemis/api/v1/sendCoupon"; |
|
|
|
public static final String NOTIFY_PAID = "http://api.hikparking.com:9016/artemis/api/v1/charge/payment/notice"; |
|
|
|
// public static final String TOKEN_URL = "http://api.hikparking.com:9016/artemis/oauth/token"; |
|
|
|
// public static final String QUERY_PRICE = "http://api.hikparking.com:9016/artemis/api/v1/charge/getParkingPaymentInfo"; |
|
|
|
// public static final String COUPON_USE = "http://api.hikparking.com:9016/artemis/api/v1/sendCoupon"; |
|
|
|
// public static final String NOTIFY_PAID = "http://api.hikparking.com:9016/artemis/api/v1/charge/payment/notice"; |
|
|
|
|
|
|
|
public static final String TOKEN_URL = "https://artemis.hikparking.com/artemis/oauth/token"; |
|
|
|
public static final String QUERY_PRICE = "https://artemis.hikparking.com/artemis/api/v1/charge/getParkingPaymentInfo"; |
|
|
|
public static final String COUPON_USE = "https://artemis.hikparking.com/artemis/api/v1/sendCoupon"; |
|
|
|
public static final String NOTIFY_PAID = "https://artemis.hikparking.com/artemis/api/v1/charge/payment/notice"; |
|
|
|
|
|
|
|
/** |
|
|
|
* @description UTC时间转化为本地时间 |
|
|
|
@@ -298,4 +303,13 @@ public class HaiKangWeiShiV2Util { |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
String getParkCodeUrl = "https://artemis.hikparking.com/artemis/api/vl/dealer/parkinfos"; |
|
|
|
Map param = new HashMap(); |
|
|
|
param.put("pageNo", 1); |
|
|
|
param.put("pageSize", 10); |
|
|
|
String token =""; //先查询一下停车费,缓存里面就有token了 |
|
|
|
String retCode = ProcBussiness(getParkCodeUrl, param,token); |
|
|
|
} |
|
|
|
|
|
|
|
} |