@@ -123,7 +123,7 @@ |
||
| 123 | 123 | * |
| 124 | 124 | * @throws RuntimeException |
| 125 | 125 | * |
| 126 | - * @return bool |
|
| 126 | + * @return \EntWeChat\Support\Collection |
|
| 127 | 127 | */ |
| 128 | 128 | public function send() |
| 129 | 129 | { |
@@ -21,9 +21,9 @@ discard block |
||
| 21 | 21 | * Create tag. |
| 22 | 22 | * |
| 23 | 23 | * @param string $name |
| 24 | - * @param null $tagI |
|
| 24 | + * @param null $tagId |
|
| 25 | 25 | * |
| 26 | - * @return int |
|
| 26 | + * @return \EntWeChat\Support\Collection |
|
| 27 | 27 | */ |
| 28 | 28 | public function create($name, $tagId = null) |
| 29 | 29 | { |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | /** |
| 39 | 39 | * List all tags. |
| 40 | 40 | * |
| 41 | - * @return array |
|
| 41 | + * @return \EntWeChat\Support\Collection |
|
| 42 | 42 | */ |
| 43 | 43 | public function lists() |
| 44 | 44 | { |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * @param int $tagId |
| 52 | 52 | * @param string $name |
| 53 | 53 | * |
| 54 | - * @return bool |
|
| 54 | + * @return \EntWeChat\Support\Collection |
|
| 55 | 55 | */ |
| 56 | 56 | public function update($tagId, $name) |
| 57 | 57 | { |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * |
| 69 | 69 | * @param int $tagId |
| 70 | 70 | * |
| 71 | - * @return bool |
|
| 71 | + * @return \EntWeChat\Support\Collection |
|
| 72 | 72 | */ |
| 73 | 73 | public function delete($tagId) |
| 74 | 74 | { |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | * |
| 85 | 85 | * @param string $tagId |
| 86 | 86 | * |
| 87 | - * @return int |
|
| 87 | + * @return \EntWeChat\Support\Collection |
|
| 88 | 88 | */ |
| 89 | 89 | public function usersOfTag($tagId) |
| 90 | 90 | { |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | * @param array $userIds |
| 101 | 101 | * @param array $partyIds |
| 102 | 102 | * |
| 103 | - * @return bool |
|
| 103 | + * @return \EntWeChat\Support\Collection |
|
| 104 | 104 | */ |
| 105 | 105 | public function batchTagUsers($tagId, array $userIds = [], array $partyIds = []) |
| 106 | 106 | { |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | * @param array $userIds |
| 121 | 121 | * @param array $partyIds |
| 122 | 122 | * |
| 123 | - * @return bool |
|
| 123 | + * @return \EntWeChat\Support\Collection |
|
| 124 | 124 | */ |
| 125 | 125 | public function batchUntagUsers($tagId, array $userIds = [], array $partyIds = []) |
| 126 | 126 | { |
@@ -13,13 +13,13 @@ |
||
| 13 | 13 | const API_MESSAGE_SEND = 'https://qyapi.weixin.qq.com/cgi-bin/kf/send'; |
| 14 | 14 | |
| 15 | 15 | //用户类型 |
| 16 | - const USER_TYPE_STAFF = 'kf'; // 客服 |
|
| 17 | - const USER_TYPE_USERID = 'userid'; // 客户UserId |
|
| 18 | - const USER_TYPE_OPENID = 'openid'; // 客户OpenId |
|
| 16 | + const USER_TYPE_STAFF = 'kf'; // 客服 |
|
| 17 | + const USER_TYPE_USERID = 'userid'; // 客户UserId |
|
| 18 | + const USER_TYPE_OPENID = 'openid'; // 客户OpenId |
|
| 19 | 19 | |
| 20 | 20 | //客服类型 |
| 21 | - const STAFF_TYPE_INTERNAL = 'internal'; // 内部 |
|
| 22 | - const STAFF_TYPE_EXTERNAL = 'external'; // 外部 |
|
| 21 | + const STAFF_TYPE_INTERNAL = 'internal'; // 内部 |
|
| 22 | + const STAFF_TYPE_EXTERNAL = 'external'; // 外部 |
|
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * List all staffs. |
@@ -188,7 +188,7 @@ |
||
| 188 | 188 | $return = []; |
| 189 | 189 | array_walk_recursive( |
| 190 | 190 | $array, |
| 191 | - function ($x) use (&$return) { |
|
| 191 | + function($x) use (&$return) { |
|
| 192 | 192 | $return[] = $x; |
| 193 | 193 | } |
| 194 | 194 | ); |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public function register(Container $pimple) |
| 23 | 23 | { |
| 24 | - $pimple['chat'] = function ($pimple) { |
|
| 24 | + $pimple['chat'] = function($pimple) { |
|
| 25 | 25 | return new Chat($pimple['access_token']); |
| 26 | 26 | }; |
| 27 | 27 | } |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public function register(Container $pimple) |
| 23 | 23 | { |
| 24 | - $pimple['shakearound'] = function ($pimple) { |
|
| 24 | + $pimple['shakearound'] = function($pimple) { |
|
| 25 | 25 | return new ShakeAround($pimple['access_token']); |
| 26 | 26 | }; |
| 27 | 27 | } |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public function register(Container $pimple) |
| 23 | 23 | { |
| 24 | - $pimple['menu'] = function ($pimple) { |
|
| 24 | + $pimple['menu'] = function($pimple) { |
|
| 25 | 25 | return new Menu($pimple['access_token']); |
| 26 | 26 | }; |
| 27 | 27 | } |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public function register(Container $pimple) |
| 23 | 23 | { |
| 24 | - $pimple['staff'] = function ($pimple) { |
|
| 24 | + $pimple['staff'] = function($pimple) { |
|
| 25 | 25 | return new Staff($pimple['access_token']); |
| 26 | 26 | }; |
| 27 | 27 | } |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public function register(Container $pimple) |
| 23 | 23 | { |
| 24 | - $pimple['agent'] = function ($pimple) { |
|
| 24 | + $pimple['agent'] = function($pimple) { |
|
| 25 | 25 | return new Agent($pimple['access_token']); |
| 26 | 26 | }; |
| 27 | 27 | } |