InstallController.class.php
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* 应用安装时的消息回调
* User: zhuxun37
* Date: 16/8/11
* Time: 下午3:44
*/
namespace Frontend\Controller\Callback;
use Think\Log;
use VcySDK\Service;
use Common\Service\SettingService;
class InstallController extends AbstractController
{
/**
* 安装消息回调
*
* $this->callBackData 格式如下:
* {
* "epId":"772FF3D97F0000017A0F28797968B245",
* "plPluginid":"D194A216C0A8C7BD2C339C03334A40EE",
* "thirdIdentifier":"QY",
* "eplAvailable":1,
* "epEnumber":"t5thr",
* "qysSuiteid":"tjb2af82c5590f1698",
* "flag":false,
* "corpid": "wx59cc12dbc3a0fe4c",
* "url":"http://thr.vchangyi.com/t5thr/Jobtrain/Frontend/Callback/Install"
* }
*
* @return bool
*/
public function Index()
{
Log::record(sprintf('---%s %s INSTALL START---', QY_DOMAIN, APP_IDENTIFIER), Log::INFO);
Log::record(var_export($this->callBackData, true), Log::INFO);
Log::record(sprintf('---%s %s INSTALL END ---', QY_DOMAIN, APP_IDENTIFIER), Log::INFO);
exit('SUCCESS');
}
}