DeleteController.class.php
723 Bytes
<?php
/**
* Created by IntelliJ IDEA.
* 删除积分等级
* Date: 17/5/24
* Time: 下午2:19
*/
namespace Apicp\Controller\Level;
use Com\PackageValidate;
use Common\Common\Integral;
class DeleteController extends AbstractController
{
public function Index_post()
{
// 获取并验证提交数据
$validate = new PackageValidate([
'eilId' => 'require',
], [
'eilId.require' => L('_ERR_PARAM_CAN_NOT_BE_EMPTY', ['name' => '积分等级规则ID']),
], [
'eilId'
]);
// 查询列表数据
$integralUtil = new Integral();
$integralUtil->levelDelete($validate->postData['eilId']);
return true;
}
}