This commit is contained in:
Lemon
2023-05-29 13:42:22 +08:00
parent 1676f35c0c
commit c6a1f88a00

View File

@@ -330,9 +330,11 @@ public class LianLianController extends BaseController {
* http://localhost:8080/LianLian/v1/query_token
*/
@PostMapping("/v1/query_token")
public CommonResult<?> queryToken(CommonParamsDTO dto) {
public CommonResult<?> queryToken(@RequestBody CommonParamsDTO dto) {
logger.info("联联平台请求令牌 params:{}", JSONObject.toJSONString(dto));
try {
Map<String, String> map = lianLianService.generateToken(dto);
logger.info("联联平台请求令牌 result:{}", JSONObject.toJSONString(map));
return CommonResult.success(0, "", map.get("data"), map.get("sig"));
} catch (UnsupportedEncodingException e) {
logger.error("获取token接口 异常");