打印日志
This commit is contained in:
parent
e03491cddd
commit
a6555d0c58
|
@ -84,6 +84,7 @@ public class CbsAccessToken {
|
||||||
param.put("app_id",CbsAccessToken.app_id);
|
param.put("app_id",CbsAccessToken.app_id);
|
||||||
param.put("app_secret",CbsAccessToken.app_secret);
|
param.put("app_secret",CbsAccessToken.app_secret);
|
||||||
param.put("grant_type","client_credentials");
|
param.put("grant_type","client_credentials");
|
||||||
|
logger.info("获取cbstoken请求地址:{},参数:{}",CbsAccessToken.app_url,JSONObject.toJSONString(param));
|
||||||
String res = HttpRequest.post(CbsAccessToken.app_url+"/openapi/app/v1/app/token").body(JSONObject.toJSONString(param)).execute().body();
|
String res = HttpRequest.post(CbsAccessToken.app_url+"/openapi/app/v1/app/token").body(JSONObject.toJSONString(param)).execute().body();
|
||||||
logger.info("获取cbstoken结果",res);
|
logger.info("获取cbstoken结果",res);
|
||||||
if (StrUtil.isNotEmpty(res) && JSONUtil.isTypeJSON(res)){
|
if (StrUtil.isNotEmpty(res) && JSONUtil.isTypeJSON(res)){
|
||||||
|
|
Loading…
Reference in New Issue