java110
2021-05-05 2d079ac843ebcb335f2ef7d6952f9700a16fddde
java110-core/src/main/java/com/java110/core/context/ApiDataFlow.java
old mode 100644 new mode 100755
@@ -1,13 +1,9 @@
package com.java110.core.context;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.java110.common.constant.CommonConstant;
import com.java110.common.util.DateUtil;
import com.java110.common.util.StringUtil;
import com.java110.core.factory.GenerateCodeFactory;
import com.java110.dto.order.OrderDto;
import com.java110.utils.constant.CommonConstant;
import com.java110.entity.center.AppRoute;
import com.java110.entity.center.Business;
import org.springframework.http.ResponseEntity;
import java.util.ArrayList;
@@ -26,6 +22,8 @@
    private String ip;
    private String apiCurrentService;
    private String userId;
    private String reqSign;
@@ -67,21 +65,25 @@
        this.resSign = resSign;
    }
    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getAppId() {
        return appId;
    }
    public String getUserId() {
        return userId;
    }
    public String getReqSign() {
        return reqSign;
    }
    @Override
    public Orders getOrder() {
    public IOrders getOrder() {
        return this;
    }
@@ -130,6 +132,19 @@
            this.setRequestTime(headerAll.get(CommonConstant.HTTP_REQ_TIME));
            this.setUserId(headerAll.get(CommonConstant.HTTP_USER_ID));
            if (headerAll.containsKey(CommonConstant.APP_ID)) {
                this.setAppId(headerAll.get(CommonConstant.APP_ID));
            }
            if (headerAll.containsKey(CommonConstant.TRANSACTION_ID)) {
                this.setTransactionId(headerAll.get(CommonConstant.TRANSACTION_ID));
            }
            if (headerAll.containsKey(CommonConstant.REQUEST_TIME)) {
                this.setRequestTime(headerAll.get(CommonConstant.REQUEST_TIME));
            }
            if (headerAll.containsKey(CommonConstant.USER_ID)) {
                this.setUserId(headerAll.get(CommonConstant.USER_ID));
            }
            if (headerAll != null){
                this.requestHeaders.putAll(headerAll);
                this.requestCurrentHeaders.putAll(headerAll);