|
|
@@ -12,7 +12,6 @@ import com.java110.utils.util.StringUtil;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.http.HttpHeaders;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -88,6 +87,13 @@ public class ApiSMOImpl extends DefaultAbstractComponentSMO implements IApiSMO {
|
|
|
headers.put("user-name", URLEncoder.encode(result.getUserName(), "UTF-8"));
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if (!headers.containsKey("user_id")) {
|
|
|
+ headers.put("user_id", "-1");
|
|
|
+ }
|
|
|
+ if (!headers.containsKey("user-id")) {
|
|
|
+ headers.put("user-id", "-1");
|
|
|
+ }
|
|
|
headers.put("store-id", result.getStoreId());
|
|
|
ResponseEntity<String> responseEntity = apiServiceSMOImpl.service(body, headers);
|
|
|
return responseEntity;
|