|
|
@@ -3,10 +3,13 @@ package service;
|
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
|
import common.Controller;
|
|
|
import common.ServiceController;
|
|
|
+import common.api.YOSAPI;
|
|
|
import common.data.Row;
|
|
|
import common.data.Rows;
|
|
|
+import restcontroller.R;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.UUID;
|
|
|
|
|
|
public class OrderAutoCheck extends ServiceController {
|
|
|
@Override
|
|
|
@@ -25,7 +28,13 @@ public class OrderAutoCheck extends ServiceController {
|
|
|
JSONObject content = new JSONObject();
|
|
|
content.put("sa_orderid", orderRow.getLong("sa_orderid"));
|
|
|
content.put("reviewtype", "");
|
|
|
- JSONObject resultObject = (JSONObject) md.callApi(20221108153502L, 1, content);
|
|
|
+
|
|
|
+ YOSAPI.YosRequest yosRequest = new YOSAPI.YosRequest();
|
|
|
+ yosRequest.setRequestKey(UUID.randomUUID().toString());
|
|
|
+ yosRequest.setAccesstoken(md.getAccessToken().getToken());
|
|
|
+ yosRequest.setRequestsessionid("-1");
|
|
|
+ yosRequest.setContent(content);
|
|
|
+ JSONObject resultObject = ((JSONObject) YOSAPI.getApi(R.ID20221108153502.v1.class).action(yosRequest));
|
|
|
if (resultObject.getIntValue("status") == 0) {
|
|
|
logger.info("订单{}审核失败;{}", orderRow.getString("sonum"), resultObject.getString("msg"));
|
|
|
errenterpriseid.add(enterpriseid);
|