GiveOutController.class.php
727 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
<?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;
}
}