安久登陆

master
duhui 2022-08-12 15:16:22 +08:00
parent 87feb2b057
commit 2bdc94d016
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,7 @@
package com.ljsd.service;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.ljsd.pojo.VerifyParams;
import com.ljsd.util.AppConstans;
import com.ljsd.util.HttpUtils;
@ -83,7 +85,9 @@ public class AnJiuVerifyService extends AbstractVerifyService {
try {
String r = HttpUtils.doPost(url, parms);
LOGGER.info("anjiu请求结果:{}",r);
if(r.equals("0")){
JSONObject jsonObject = JSON.parseObject(r);
int code = jsonObject.getIntValue("code");
if(code == 0){
result = true;
}
}catch (IOException e){