<?php /** * 【后台】员工激励发放接口 * GiveOutController.class.php * @author:daijun * @date:2017-08-31 */ namespace Apicp\Controller\Incentives; use Common\Service\IncentivesService; class GiveOutController extends \Apicp\Controller\AbstractController { /** * 员工激励发放接口 * @author daijun */ public function Index_post() { // 获取参数 $list = I('post.list'); $incentives_serv = new IncentivesService(); $user = $this->_login->user; // 验证数据并发放 $check = $incentives_serv->check_and_give_out($list, $user); if (!$check) { return false; } return true; } }