@@ 76-84 (lines=9) @@ | ||
73 | * |
|
74 | * @return \EntWeChat\Support\Collection |
|
75 | */ |
|
76 | public function update($chatId, $opUser, array $chatInfo = []) |
|
77 | { |
|
78 | $params = array_merge($chatInfo, [ |
|
79 | 'chatid' => $chatId, |
|
80 | 'op_user' => $opUser, |
|
81 | ]); |
|
82 | ||
83 | return $this->parseJSON('json', [self::API_UPDATE, $params]); |
|
84 | } |
|
85 | ||
86 | /** |
|
87 | * Quit chat. |
|
@@ 94-102 (lines=9) @@ | ||
91 | * |
|
92 | * @return \EntWeChat\Support\Collection |
|
93 | */ |
|
94 | public function quit($chatId, $opUser) |
|
95 | { |
|
96 | $params = [ |
|
97 | 'chatid' => $chatId, |
|
98 | 'op_user' => $opUser, |
|
99 | ]; |
|
100 | ||
101 | return $this->parseJSON('json', [self::API_QUIT, $params]); |
|
102 | } |
|
103 | ||
104 | /** |
|
105 | * Clear chat. |