InstallController.class.php
941 Bytes
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
45
46
47
<?php
/**
* 应用安装时的消息回调
* User: zhuxun37
* Date: 16/8/11
* Time: 下午3:44
*/
namespace Frontend\Controller\Callback;
class InstallController extends AbstractController
{
// 应用状态,可用
const PLUGIN_STATE_AVAILABLE = 1;
// 应用状态,不可用
const PLUGIN_STATE_UNAVAILABLE = 2;
public function __construct()
{
parent::__construct();
}
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);
$this->Install();
exit('SUCCESS');
}
/**
* 安装应用
*
* @author caijianhua
*
* @return void
*/
public function Install()
{
exit('SUCCESS');
}
}