update 海南平台对接

This commit is contained in:
2024-01-26 16:42:15 +08:00
parent 49e725983e
commit 314ef2a24d
3 changed files with 16 additions and 13 deletions

View File

@@ -17,6 +17,7 @@ import com.jsowell.thirdparty.lianlian.dto.CommonParamsDTO;
import com.jsowell.thirdparty.lianlian.util.Cryptos;
import com.jsowell.thirdparty.lianlian.util.Encodes;
import com.jsowell.thirdparty.platform.AbsInterfaceWithPlatformLogic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
@@ -31,6 +32,7 @@ import java.util.Map;
@RequestMapping("/hainan")
public class HaiNanPlatformController extends BaseController {
// 使用海南平台处理逻辑
@Autowired
private AbsInterfaceWithPlatformLogic platformLogic = new HaiNanPlatformLogic();
/**
@@ -45,7 +47,7 @@ public class HaiNanPlatformController extends BaseController {
logger.info("海南平台请求令牌 result:{}", JSONObject.toJSONString(map));
return CommonResult.success(0, "请求令牌成功!", map.get("Data"), map.get("Sig"));
} catch (Exception e) {
logger.error("海南平台 请求令牌接口 异常");
logger.error("海南平台 请求令牌接口 异常", e);
return CommonResult.failed("获取token发生异常");
}
}