|
@@ -3,6 +3,7 @@ package me.zhengjie.modules.thirdparty.v1;
|
|
|
import cn.hutool.http.HtmlUtil;
|
|
|
import cn.hutool.http.HttpRequest;
|
|
|
import cn.hutool.http.HttpUtil;
|
|
|
+import cn.hutool.http.Method;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -81,7 +82,8 @@ public class UserApiController {
|
|
|
public ResponseEntity<Object> getusers(HttpServletRequest request, String formData) throws IOException {
|
|
|
// SecurityUtils.CheckApiAuth(request);
|
|
|
// List<DmUserDto> list = dmUserService.queryAll(criteria);
|
|
|
- String res = HttpRequest.get("http://222.84.157.37:30170/api-third-party/busi/comm/usky/queryUser")
|
|
|
+ String url = "/api-third-party/busi/comm/usky/queryUser";
|
|
|
+ String res = HttpRequest.get(erpapiUrl+url)
|
|
|
.header("X_AUTO_USER_INFO_HEAD", "{\"id\":\"anonymous\",\"tenantId\":\"caih\"}")
|
|
|
.body("{\n" +
|
|
|
" \"formData\":{\n" +
|
|
@@ -169,7 +171,7 @@ public class UserApiController {
|
|
|
if (StringUtils.isBlank(token)) {
|
|
|
throw new BadRequestException("参数错误");
|
|
|
}
|
|
|
- String res = HttpRequest.get(erpapiUrl + "/api-third-party/busi/comm/authLogin/api/verifyToken?token=" + token).execute().body();
|
|
|
+ String res = HttpRequest.get(erpapiUrl + "/api-third-party/busi/comm/authLogin/api/verifyToken?token=" + token).method(Method.POST).execute().body();
|
|
|
JSONObject json = JSONObject.parseObject(res);
|
|
|
if (json != null) {
|
|
|
JSONObject data = json.getJSONObject("data");
|