|
|
@@ -201,6 +201,8 @@ class PlayerControl extends BaseController
|
|
|
$controlWhere[] = ['update_time', '<=', $filters['end_time']];
|
|
|
}
|
|
|
|
|
|
+ $controlWhere[] = ['status', '=', 1];
|
|
|
+
|
|
|
$results = PlayerControlModel::getPlayerControlList($userInfo['merchant_id'], $page, $limit, $controlWhere);
|
|
|
|
|
|
$allGameList = GameModel::getGames($userInfo['merchant_id'], [], ['id', 'game_id', 'title', 'game_platform']);
|
|
|
@@ -275,7 +277,11 @@ class PlayerControl extends BaseController
|
|
|
return json_error([], '参数错误');
|
|
|
}
|
|
|
|
|
|
- PlayerControlModel::find($control_id)->delete();
|
|
|
+ $info = PlayerControlModel::find($control_id);
|
|
|
+ if(!empty($info)) {
|
|
|
+ $info->status = 0;
|
|
|
+ $info->save();
|
|
|
+ }
|
|
|
return json_success([],'操作成功');
|
|
|
}
|
|
|
|