bug修复
This commit is contained in:
parent
98e43f988e
commit
65df874493
@ -4,6 +4,7 @@ import cn.hutool.http.HttpUtil;
|
|||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONArray;
|
import com.alibaba.fastjson.JSONArray;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@ -16,7 +17,7 @@ import java.util.UUID;
|
|||||||
* @author: Mr.Peng
|
* @author: Mr.Peng
|
||||||
* @create: 2021-10-22 19:33
|
* @create: 2021-10-22 19:33
|
||||||
**/
|
**/
|
||||||
|
@Slf4j
|
||||||
public class RundeSafeyHatUtils {
|
public class RundeSafeyHatUtils {
|
||||||
|
|
||||||
private static String url = "https://caps.runde.pro/api/index.php";
|
private static String url = "https://caps.runde.pro/api/index.php";
|
||||||
@ -56,7 +57,9 @@ public class RundeSafeyHatUtils {
|
|||||||
param.put("pkey", token);
|
param.put("pkey", token);
|
||||||
param.put("ctl", "tool");
|
param.put("ctl", "tool");
|
||||||
param.put("act", "get_token");
|
param.put("act", "get_token");
|
||||||
|
log.info("getToken:url:{},param:{}", url, JSON.toJSONString(param));
|
||||||
String result = HttpUtil.post(url, param);
|
String result = HttpUtil.post(url, param);
|
||||||
|
log.info("getToken:rs:{}", result);
|
||||||
if (StringUtils.isNotEmpty(result)) {
|
if (StringUtils.isNotEmpty(result)) {
|
||||||
JSONObject object = JSON.parseObject(result);
|
JSONObject object = JSON.parseObject(result);
|
||||||
String code = String.valueOf(object.get("status").toString());
|
String code = String.valueOf(object.get("status").toString());
|
||||||
@ -66,7 +69,7 @@ public class RundeSafeyHatUtils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
log.error("err", e);
|
||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user