Browse Source

Merge branch 'test' into pre-production

dev-warehouse
zhenghaoyu 2 years ago
parent
commit
732be5c98d
  1. 4
      blade-service/logpm-factory/src/main/java/com/logpm/factory/mt/service/impl/MtFactoryDataServiceImpl.java

4
blade-service/logpm-factory/src/main/java/com/logpm/factory/mt/service/impl/MtFactoryDataServiceImpl.java

@ -208,7 +208,7 @@ public class MtFactoryDataServiceImpl implements IMtFactoryDataService {
jsonObject1.put("APPSECRET",mtFactoryProperties.getAppsecret()); jsonObject1.put("APPSECRET",mtFactoryProperties.getAppsecret());
jsonObject1.put("USERID",mtFactoryProperties.getUserid()); jsonObject1.put("USERID",mtFactoryProperties.getUserid());
jsonObject1.put("USERPWD",mtFactoryProperties.getUserpwd()); jsonObject1.put("USERPWD",mtFactoryProperties.getUserpwd());
String result = HttpRequest.post(mtFactoryProperties.getUrl()) String result = HttpRequest.post(mtFactoryProperties.getUrl()+"/Auth/Validate")
.header("Content-Type","application/json").body(jsonObject1.toJSONString()).timeout(5 * 1000) .header("Content-Type","application/json").body(jsonObject1.toJSONString()).timeout(5 * 1000)
.execute() .execute()
.body(); .body();
@ -235,8 +235,6 @@ public class MtFactoryDataServiceImpl implements IMtFactoryDataService {
} }
return mtToken; return mtToken;
} }

Loading…
Cancel
Save