|
|
@@ -1,6 +1,7 @@
|
|
|
package com.ydtech.modules.order.components;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
+import com.alibaba.fastjson.serializer.SerializerFeature;
|
|
|
import com.ydtech.config.properties.ZmApiConfigurationProperties;
|
|
|
import com.ydtech.exception.SystemException;
|
|
|
import com.ydtech.modules.order.entity.api.zm.BaseRequest;
|
|
|
@@ -41,7 +42,7 @@ public class ZhongmeiRequestApiComponents {
|
|
|
}
|
|
|
|
|
|
private <Q extends BaseRequest, S extends BaseResponse> S post(Q q, String url, Class<S> tClass) {
|
|
|
- String jsonString = JSON.toJSONString(q);
|
|
|
+ String jsonString = JSON.toJSONString(q, SerializerFeature.WriteMapNullValue, SerializerFeature.WriteNullStringAsEmpty);
|
|
|
log.info("---------> 请求参数:{}", jsonString);
|
|
|
|
|
|
HttpHeaders httpHeaders = new HttpHeaders();
|