EditPlanController.class.php
856 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
<?php
/**
* 【后台】编辑照片墙接口
* EditPlanConTroller.class.php
* User: caijianhua
* Date: 2017/8/29
* Time: 下午5:15
*/
namespace Apicp\Controller\Pic;
use Common\Service\PlanService;
class EditPlanController extends \Apicp\Controller\AbstractController
{
/** @var PlanService 计划表 */
protected $plan_service;
public function before_action($action = '')
{
if (!parent::before_action($action)) {
return false;
}
$this->plan_service = new PlanService();
return true;
}
/**
* 【后台】编辑照片墙接口
*
* @author 蔡建华
*/
public function Index_post()
{
$params = I('post.');
// 编辑照片墙接口
$this->_result = $this->plan_service->edit_pic_plan($params);
return true;
}
}