generated from root/miduo_server
修改dna登录校验
parent
f1528fc299
commit
01b2c9b4a5
|
@ -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;
|
||||
|
@ -111,8 +113,12 @@ public class Dna01VerifyService extends AbstractVerifyService {
|
|||
try {
|
||||
String r = HttpUtils.doPost(url, parms);
|
||||
LOGGER.info("dna01请求结果:{}",r);
|
||||
if (r != null && r.equals("1")) {
|
||||
result = true;
|
||||
if (r != null) {
|
||||
JSONObject jsonObject = JSON.parseObject(r);
|
||||
String status = jsonObject.getString("status");
|
||||
if("1".equals(status)){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}catch (IOException e){
|
||||
LOGGER.info("dna01验证失败,IOException:{}",e.getMessage());
|
||||
|
|
Loading…
Reference in New Issue