Browse Source

修改群介绍接口传参

Pq 3 months ago
parent
commit
dc72dea482

+ 1 - 1
chatModule/src/main/java/com/cooleshow/chatmodule/api/IMApi.java

@@ -210,6 +210,6 @@ public interface IMApi {
      * @param body
      * @return
      */
-    @POST("{group_name}" + "imGroup/updateIntroduce")
+    @POST("{group_name}" + "/imGroup/updateIntroduce")
     Observable<BaseResponse<Object>> updateGroupIntroduce(@Body RequestBody body,@Path("group_name")String group_name);
 }

+ 1 - 1
chatModule/src/main/java/com/cooleshow/chatmodule/presenter/GroupIntroducePresenter.java

@@ -25,7 +25,7 @@ public class GroupIntroducePresenter extends BasePresenter<GroupIntroduceContrac
         }
         JSONObject jsonObject = new JSONObject();
         try {
-            jsonObject.putOpt("groupId", targetId);
+            jsonObject.putOpt("id", targetId);
             jsonObject.putOpt("introduce", content);
         } catch (JSONException e) {
             e.printStackTrace();