mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update
This commit is contained in:
@@ -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接口 异常");
|
||||
|
||||
Reference in New Issue
Block a user