@@ -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. |
@@ -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 | } |
@@ -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 | } |
@@ -23,15 +23,15 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function register(Container $pimple) |
| 25 | 25 | { |
| 26 | - $pimple['user'] = function ($pimple) { |
|
| 26 | + $pimple['user'] = function($pimple) { |
|
| 27 | 27 | return new User($pimple['access_token']); |
| 28 | 28 | }; |
| 29 | 29 | |
| 30 | - $department = function ($pimple) { |
|
| 30 | + $department = function($pimple) { |
|
| 31 | 31 | return new Department($pimple['access_token']); |
| 32 | 32 | }; |
| 33 | 33 | |
| 34 | - $tag = function ($pimple) { |
|
| 34 | + $tag = function($pimple) { |
|
| 35 | 35 | return new Tag($pimple['access_token']); |
| 36 | 36 | }; |
| 37 | 37 | |
@@ -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 | } |