|
@@ -36,6 +36,7 @@ public class WzwlDocking extends BaseClass {
|
|
|
*/
|
|
|
public String createWzwlOrder(Row logisticRow, Rows logisticItems, Controller controller, long sa_logisticsid, JSONObject sender) throws YosException, NoSuchAlgorithmException, UnsupportedEncodingException {
|
|
|
JSONObject request = new JSONObject();
|
|
|
+ JSONObject request1 = new JSONObject();
|
|
|
JSONObject data = new JSONObject();
|
|
|
JSONObject consigner = new JSONObject();
|
|
|
JSONObject consignee = new JSONObject();
|
|
@@ -122,6 +123,10 @@ public class WzwlDocking extends BaseClass {
|
|
|
}
|
|
|
data.put("cargo", cargo);
|
|
|
String datastr=data.toString().replace("\"", "'");
|
|
|
+ String datastr1=data.toString().replace("\"", "''");
|
|
|
+ request1.put("data", datastr1);
|
|
|
+ request1.put("appKey", appKey);
|
|
|
+ request1.put("digest", digest_MD5_Base64(datastr, secretKey));
|
|
|
request.put("data", datastr);
|
|
|
request.put("appKey", appKey);
|
|
|
request.put("digest", digest_MD5_Base64(datastr, secretKey));
|
|
@@ -131,7 +136,7 @@ public class WzwlDocking extends BaseClass {
|
|
|
String result = new WebRequest().doPost(request.toString(), url + "OrderCreate", map);
|
|
|
JSONObject resultobject = JSONObject.parseObject(result);
|
|
|
|
|
|
- saveLog(controller, "sa_logistics", sa_logisticsid, "创建万众物流订单", request.toString(), resultobject);
|
|
|
+ saveLog(controller, "sa_logistics", sa_logisticsid, "创建万众物流订单", request1.toString(), resultobject);
|
|
|
|
|
|
if (resultobject != null) {
|
|
|
if (resultobject.getString("success").equals("true")) {
|