|
|
@@ -3,6 +3,7 @@ package com.izouma.awesomeadmin.ttdjApi;
|
|
|
import com.arronlong.httpclientutil.HttpClientUtil;
|
|
|
import com.arronlong.httpclientutil.common.HttpConfig;
|
|
|
import com.arronlong.httpclientutil.exception.HttpProcessException;
|
|
|
+import com.drew.lang.StringUtil;
|
|
|
import com.google.gson.Gson;
|
|
|
import com.izouma.awesomeadmin.service.impl.AlipayTempServiceImpl;
|
|
|
import net.sf.json.JSONObject;
|
|
|
@@ -20,6 +21,9 @@ public class TTDJApiUtil {
|
|
|
private String clientType;
|
|
|
|
|
|
public TTDJApiUtil(String clientType) {
|
|
|
+ if (StringUtils.isEmpty(clientType)) {
|
|
|
+ clientType = "android";
|
|
|
+ }
|
|
|
this.clientType = clientType;
|
|
|
}
|
|
|
|
|
|
@@ -41,6 +45,7 @@ public class TTDJApiUtil {
|
|
|
Map<String, String> body = new HashMap<>();
|
|
|
body.put("mobile", mobile);
|
|
|
body.put("captcha", captcha);
|
|
|
+ body.put("channel", "wdj_1");
|
|
|
try {
|
|
|
String res = removeEmptyValue(post("http://test.ttdj.ttdianjing.com/user/login", body, null));
|
|
|
Gson gson = new Gson();
|