@@ -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 | ); |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | $userIds = func_get_args(); |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | - $userIds = Arr::where((array) $userIds, function ($key, $value) { |
|
| 154 | + $userIds = Arr::where((array) $userIds, function($key, $value) { |
|
| 155 | 155 | return is_string($value) || is_numeric($value); |
| 156 | 156 | }); |
| 157 | 157 | |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | $partyIds = func_get_args(); |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | - $partyIds = Arr::where((array) $partyIds, function ($key, $value) { |
|
| 176 | + $partyIds = Arr::where((array) $partyIds, function($key, $value) { |
|
| 177 | 177 | return is_numeric($value); |
| 178 | 178 | }); |
| 179 | 179 | |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | $tagIds = func_get_args(); |
| 196 | 196 | } |
| 197 | 197 | |
| 198 | - $tagIds = Arr::where((array) $tagIds, function ($key, $value) { |
|
| 198 | + $tagIds = Arr::where((array) $tagIds, function($key, $value) { |
|
| 199 | 199 | return is_numeric($value); |
| 200 | 200 | }); |
| 201 | 201 | |
@@ -11,13 +11,13 @@ |
||
| 11 | 11 | { |
| 12 | 12 | const API_MESSAGE_SEND = 'https://qyapi.weixin.qq.com/cgi-bin/message/send'; |
| 13 | 13 | |
| 14 | - const MSG_TYPE_TEXT = 'text'; // 文本 |
|
| 15 | - const MSG_TYPE_NEWS = 'news'; // 图文 |
|
| 16 | - const MSG_TYPE_VOICE = 'voice'; // 语音 |
|
| 17 | - const MSG_TYPE_IMAGE = 'image'; // 图片 |
|
| 18 | - const MSG_TYPE_VIDEO = 'video'; // 视频 |
|
| 19 | - const MSG_TYPE_CARD = 'card'; // 卡券 |
|
| 20 | - const MSG_TYPE_FILE = 'file'; // 文件 |
|
| 14 | + const MSG_TYPE_TEXT = 'text'; // 文本 |
|
| 15 | + const MSG_TYPE_NEWS = 'news'; // 图文 |
|
| 16 | + const MSG_TYPE_VOICE = 'voice'; // 语音 |
|
| 17 | + const MSG_TYPE_IMAGE = 'image'; // 图片 |
|
| 18 | + const MSG_TYPE_VIDEO = 'video'; // 视频 |
|
| 19 | + const MSG_TYPE_CARD = 'card'; // 卡券 |
|
| 20 | + const MSG_TYPE_FILE = 'file'; // 文件 |
|
| 21 | 21 | const MSG_TYPE_MPNEWS = 'mpnews'; // 图文 |
| 22 | 22 | |
| 23 | 23 | /** |
@@ -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 | } |
@@ -22,11 +22,11 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | public function register(Container $pimple) |
| 24 | 24 | { |
| 25 | - $pimple['oauth'] = function ($pimple) { |
|
| 25 | + $pimple['oauth'] = function($pimple) { |
|
| 26 | 26 | return new Oauth($pimple['access_token']); |
| 27 | 27 | }; |
| 28 | 28 | |
| 29 | - $pimple['auth'] = function ($pimple) { |
|
| 29 | + $pimple['auth'] = function($pimple) { |
|
| 30 | 30 | return new Authentication($pimple['access_token']); |
| 31 | 31 | }; |
| 32 | 32 | } |
@@ -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 | } |