|
@@ -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;
|