ssvfdn 3 сар өмнө
parent
commit
a900d5ad18

+ 1 - 1
app/controller/PlayerControl.php

@@ -311,7 +311,7 @@ class PlayerControl extends BaseController
         if(empty($control_id)) {
         if(empty($control_id)) {
             return json_error([], '参数错误');
             return json_error([], '参数错误');
         }
         }
-        $info = PlayerControlModel::where(['control_id' => $control_id, 'user_id' => $userInfo['user_id']]);
+        $info = PlayerControlModel::where(['control_id' => $control_id, 'user_id' => $userInfo['user_id']])->find();
         if(!empty($info)) {
         if(!empty($info)) {
             $info->end_time = time();
             $info->end_time = time();
             $info->status = 0;
             $info->status = 0;