ssvfdn пре 3 месеци
родитељ
комит
a900d5ad18
1 измењених фајлова са 1 додато и 1 уклоњено
  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;