old mode 100644
new mode 100755
| | |
| | | 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; |
| | |
| | | private String ip; |
| | | |
| | | private String apiCurrentService; |
| | | |
| | | private String userId; |
| | | |
| | | private String reqSign; |
| | | |
| | |
| | | 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; |
| | | } |
| | | |
| | |
| | | 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); |