Skip to content

Commit

Permalink
[bugfix] create group wrong params post
Browse files Browse the repository at this point in the history
  • Loading branch information
lichunqiang committed Jul 29, 2016
1 parent d014849 commit d57f1e7
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/Easemob/Rest/Group.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

/*
* This file is part of the light/easemob.
*
* (c) lichunqiang <light-li@hotmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace light\Easemob\Rest;

class Group extends Rest
Expand Down Expand Up @@ -78,15 +69,15 @@ public function create(
$approval = false
) {
$response = $this->post('chatgroups', [
'body' => json_encode([
[
'groupname' => $name,
'desc' => $desc,
'public' => $is_public,
'maxusers' => $max_users,
'approval' => $approval,
'owner' => $owner,
'owner' => (string) $owner,
'members' => $members,
]),
],
]);

return $response ? $response['data'] : false;
Expand Down

0 comments on commit d57f1e7

Please sign in to comment.