|
|
@@ -134,6 +134,13 @@ class PlayerControl extends BaseController
|
|
|
return json_success([],'操作成功');
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取点控列表
|
|
|
+ * @return \think\response\Json
|
|
|
+ * @throws \think\db\exception\DataNotFoundException
|
|
|
+ * @throws \think\db\exception\DbException
|
|
|
+ * @throws \think\db\exception\ModelNotFoundException
|
|
|
+ */
|
|
|
public function getPlayerControlList()
|
|
|
{
|
|
|
// 获取当前用户信息
|
|
|
@@ -252,4 +259,24 @@ class PlayerControl extends BaseController
|
|
|
return json_success($results);
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 取消点控设置
|
|
|
+ * @return \think\response\Json
|
|
|
+ * @throws \think\db\exception\DataNotFoundException
|
|
|
+ * @throws \think\db\exception\DbException
|
|
|
+ * @throws \think\db\exception\ModelNotFoundException
|
|
|
+ */
|
|
|
+ public function cancelPlayerControlInfo()
|
|
|
+ {
|
|
|
+ $control_id = Request::post('control_id','', 'trim');
|
|
|
+ if(empty($control_id)) {
|
|
|
+ return json_error([], '参数错误');
|
|
|
+ }
|
|
|
+
|
|
|
+ PlayerControlModel::find($control_id)->delete();
|
|
|
+ return json_success([],'操作成功');
|
|
|
+ }
|
|
|
+
|
|
|
}
|