Commit aaaafa30 authored by hujun's avatar hujun

权限验证

parent 47bbd255
......@@ -1192,8 +1192,16 @@ class Shop extends Basic
$data['check_id'] = $this->agentId;
$data['check_name'] = $this->agentName;
$data['check_time'] = date('Y-m-d H:i:s');
$rule_name = 'index/checkVideo';
} else {
$data['is_del'] = 1;
$rule_name = 'index/delVideo';
}
$vip = new VipService();
$is_auth = $vip->checkRule($this->agentId, $rule_name);
if ($is_auth) {
return $this->response(101, '没有权限');
}
$num = $m_house_video->updateData($data, ['id'=>$this->params['video_id']]);
......
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