Commit d92e6617 authored by hujun's avatar hujun

财务编辑后台权限处理

parent 219f6450
......@@ -10,6 +10,7 @@ namespace app\index\controller;
use app\api_broker\service\OrderLogService;
use app\api_broker\service\VipService;
use app\index\extend\Basic;
use app\index\untils\ExportExcelUntil;
use app\model\AAgents;
......@@ -728,6 +729,7 @@ class Finance extends Basic
//todo 修改成交报告 判断id> 0
$m_partial = new OPartialCommission();
$check = new VipService();
$data = $this->params["commission_date"];
$add_arr = $update_arr = $log_data = [];
......@@ -750,6 +752,9 @@ class Finance extends Basic
$update_arr[$i]['operation_id'] = $this->userId;
//确认分佣加时间 否则 只是保存分佣数据
if ($this->params['is_account_commission'] == 1) {
if ($check->vip($this->userId, 'account_commission')) {
return $this->response(101,'没有权限!');
}
$update_arr[$i]['confirm_date'] = date("Y-m-d H:i:s", time());
$update_arr[$i]['confirm_status'] = 1;
}
......@@ -772,6 +777,10 @@ class Finance extends Basic
$add_arr[$j]['agent_id'] = $item['agent_id'];
//确认分佣加时间 否则 只是保存分佣数据
if ($this->params['is_account_commission'] == 1) {
if ($check->vip($this->userId, 'account_commission')) {
return $this->response(101,'没有权限!');
}
$add_arr[$j]['confirm_date'] = date("Y-m-d H:i:s", time());
$add_arr[$j]['confirm_status'] = 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment