新增 宁夏平台controller

This commit is contained in:
Lemon
2024-05-30 09:38:29 +08:00
parent 40a929eebd
commit f08de6dd54
5 changed files with 148 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
import com.jsowell.common.annotation.Anonymous;
import com.jsowell.common.core.controller.BaseController;
import com.jsowell.common.enums.thirdparty.ThirdPlatformTypeEnum;
import com.jsowell.common.exception.BusinessException;
import com.jsowell.common.response.RestApiResponse;
import com.jsowell.common.util.JWTUtils;
import com.jsowell.pile.domain.ThirdPartyPlatformConfig;
@@ -56,8 +57,11 @@ public class QingHaiController extends BaseController {
Map<String, String> map = qingHaiPlatformServiceImpl.queryToken(dto);
logger.info("青海平台请求令牌 result:{}", JSON.toJSONString(map));
return CommonResult.success(Integer.parseInt(map.get("Ret")), map.get("Msg"), map.get("Data"), map.get("Sig"));
}catch (BusinessException e) {
logger.error("青海平台请求令牌 error:{}, {}", e.getCode(), e.getMessage());
return CommonResult.failed("获取token发生异常");
} catch (Exception e) {
logger.error("获取token接口 异常");
logger.error("青海平台请求令牌接口 异常");
return CommonResult.failed("获取token发生异常");
}
}