@@ -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 | } |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public function register(Container $pimple) |
| 23 | 23 | { |
| 24 | - $pimple['broadcast'] = function ($pimple) { |
|
| 24 | + $pimple['broadcast'] = function($pimple) { |
|
| 25 | 25 | return new Broadcast($pimple['access_token']); |
| 26 | 26 | }; |
| 27 | 27 | } |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public function register(Container $pimple) |
| 24 | 24 | { |
| 25 | - $pimple['encryptor'] = function ($pimple) { |
|
| 25 | + $pimple['encryptor'] = function($pimple) { |
|
| 26 | 26 | return new Encryptor( |
| 27 | 27 | $pimple['config']['corp_id'], |
| 28 | 28 | $pimple['config']['token'], |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | ); |
| 31 | 31 | }; |
| 32 | 32 | |
| 33 | - $pimple['server'] = function ($pimple) { |
|
| 33 | + $pimple['server'] = function($pimple) { |
|
| 34 | 34 | $server = new Guard($pimple['config']['token']); |
| 35 | 35 | |
| 36 | 36 | $server->debug($pimple['config']['debug']); |