Commit 8e6890cc authored by wujipeng's avatar wujipeng
Browse files

接口扫描

parent 9380abc7
...@@ -35,7 +35,7 @@ public class CustomerProjectServiceImpl extends ServiceImpl<CustomerProjectMappe ...@@ -35,7 +35,7 @@ public class CustomerProjectServiceImpl extends ServiceImpl<CustomerProjectMappe
String token; String token;
try { try {
String loginResponse = postWithApacheHttpClient("http://172.24.33.190/api/auth/login", String loginResponse = postWithApacheHttpClient("http://172.24.33.190/api/auth/login",
"{\"username\":\"wsadmin\",\"password\":\"cd2350c714eb2cf9b4eacde8d4834823\"}", null); "{\"username\":\"wsadmin\",\"password\":\"cced9dbff1f6b878702a7c9bc60dd125\"}", null);
JSONObject jsonObject = JSON.parseObject(loginResponse); JSONObject jsonObject = JSON.parseObject(loginResponse);
int loginCode = jsonObject.getInteger("code"); int loginCode = jsonObject.getInteger("code");
if (loginCode == 200) { if (loginCode == 200) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment