ssvfdn hai 3 meses
pai
achega
a900d5ad18
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;