接口优化
This commit is contained in:
parent
c385341a79
commit
d03e995a37
@ -65,7 +65,6 @@ public class VerifyUtil {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 微信工具类构造函数。
|
* 微信工具类构造函数。
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public VerifyUtil() throws IOException {
|
public VerifyUtil() throws IOException {
|
||||||
client = new OkHttpClient();
|
client = new OkHttpClient();
|
||||||
@ -162,10 +161,9 @@ public class VerifyUtil {
|
|||||||
|
|
||||||
return JsonResult.success("验证用户实名成功");
|
return JsonResult.success("验证用户实名成功");
|
||||||
}
|
}
|
||||||
}else{
|
}
|
||||||
log.error("验证用户实名失败,{} {}", result.getString("code"), result.getString("message"));
|
log.error("验证用户实名失败,{} {}", result.getString("code"), result.getString("message"));
|
||||||
return JsonResult.failed(result.getString("code") + ", " + result.getString("message"));
|
return JsonResult.failed(result.getString("code") + ", " + result.getString("message"));
|
||||||
}
|
|
||||||
} catch (EncryptFailureException e) {
|
} catch (EncryptFailureException e) {
|
||||||
log.error("加密失败", e);
|
log.error("加密失败", e);
|
||||||
return JsonResult.failed("加密失败");
|
return JsonResult.failed("加密失败");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user