Commit c6a05d16 by Shadow

修复报错

parent 12cd68f3
......@@ -183,7 +183,7 @@ public class ImFriendController extends BaseController {
* @param
* @Return
*/
@PostMapping("/sdk/getFriends")
@GetMapping("/sdk/getFriends")
@ApiOperation(value = "全量获取好友列表")
public ApiResult<List<ImFriendBaseDto>> getFriendsSdk(@RequestParam("userId") String clientId) {
Long appId = SecurityUtils.getCurrentAppId();
......
......@@ -57,7 +57,7 @@ public class WecloudImContactsOperation extends WecloudImOperation {
assertParameterNotNull(userId, "userId");
// 校验通过 构建参数
Map<String, Object> param = new HashMap<>();
param.put("clientId", userId + "");
param.put("userId", userId + "");
// 发送请求
RequestMessage request = new WecloudRequestMessageBuilder().setEndpoint(GET_UNSURE_FRIENDS)
......@@ -84,10 +84,10 @@ public class WecloudImContactsOperation extends WecloudImOperation {
assertParameterNotNull(userId, "userId");
// 校验通过 构建参数
Map<String, Object> param = new HashMap<>();
param.put("clientId", userId + "");
param.put("userId", userId + "");
// 发送请求
RequestMessage request = new WecloudRequestMessageBuilder().setEndpoint(GET_FRIENDS)
.setMethod(HttpMethod.POST).setParameters(param)
.setMethod(HttpMethod.GET).setParameters(param)
.setOriginalRequest(getFriendsRequest).build();
Object result = doOperation(request);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment