ssvfdn 3 mēneši atpakaļ
vecāks
revīzija
a900d5ad18
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      app/controller/PlayerControl.php

+ 1 - 1
app/controller/PlayerControl.php

@@ -311,7 +311,7 @@ class PlayerControl extends BaseController
         if(empty($control_id)) {
             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)) {
             $info->end_time = time();
             $info->status = 0;