Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http client 中的post ,put 方法 要支持 body 和paramMap 并存的情况 #310

Closed
venusdrogon opened this issue Jul 30, 2021 · 0 comments
Assignees
Labels
bug Something isn't working feilong-net feilong-net
Milestone

Comments

@venusdrogon
Copy link
Collaborator

 Map<String, String> map = toMap("access_token", key);

        if (isNotNullOrEmpty(secret)){
            Long timestamp = System.currentTimeMillis();
            map.put("timestamp", "" + timestamp);
            map.put("sign", isName(timestamp, secret));
        }

        //---------------------------------------------------------------
        httpRequest.setParamMap(map);
        httpRequest.setRequestBody(JsonUtil.format(botMessage, 0, 0));

 
 
        "paramMap":         {
            "access_token": "******",
            "sign": "****%2BuK7gTw%3D",
            "timestamp": "1627634322974"
        },
        "requestBody": "{\"markdown\":{\"text\":\"[飞龙]小小温馨提醒您,按时填写jira timesheet哦😁\",\"title\":\"测试\"},\"msgtype\":\"markdown\"}",
        "uri": "https://oapi.dingtalk.com/robot/send"

现在在执行的过程中, 提示没有access_token 参数

@venusdrogon venusdrogon added bug Something isn't working feilong-net feilong-net labels Jul 30, 2021
@venusdrogon venusdrogon added this to the 3.0.11 milestone Jul 30, 2021
@venusdrogon venusdrogon self-assigned this Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feilong-net feilong-net
Projects
None yet
Development

No branches or pull requests

1 participant