|
|
@ -799,23 +799,23 @@ class TestingResourceController extends ThinkController
|
|
|
|
$createTimeStart = $params['create_time_start'] ?? '';
|
|
|
|
$createTimeStart = $params['create_time_start'] ?? '';
|
|
|
|
$createTimeEnd = $params['create_time_end'] ?? '';
|
|
|
|
$createTimeEnd = $params['create_time_end'] ?? '';
|
|
|
|
$gameId = $params['game_id'] ?? 0;
|
|
|
|
$gameId = $params['game_id'] ?? 0;
|
|
|
|
$gameName = $params['gameName'] ?? 0;
|
|
|
|
$gameName = $params['game_name'] ?? '';
|
|
|
|
|
|
|
|
|
|
|
|
$conditions = [];
|
|
|
|
$conditions = [];
|
|
|
|
$strCondition = '1=1';
|
|
|
|
$strCondition = '1=1';
|
|
|
|
|
|
|
|
|
|
|
|
if ($createTimeStart) {
|
|
|
|
if ($createTimeStart) {
|
|
|
|
$strCondition .= ' and create_time >=' . strtotime($createTimeStart . ' 00:00:00');
|
|
|
|
$strCondition .= ' and create_time >="' . $createTimeStart . ' 00:00:00' . '"';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($createTimeEnd) {
|
|
|
|
if ($createTimeEnd) {
|
|
|
|
$strCondition .= ' and create_time <=' . strtotime($createTimeEnd . ' 23:59:59');
|
|
|
|
$strCondition .= ' and create_time <="' . $createTimeEnd . ' 23:59:59' . '"';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($gameId) {
|
|
|
|
if ($gameId) {
|
|
|
|
$conditions['game_id'] = $gameId;
|
|
|
|
$conditions['game_id'] = $gameId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($gameName) {
|
|
|
|
if ($gameName) {
|
|
|
|
$conditions['gameName'] = $gameName;
|
|
|
|
$conditions['game_name'] = $gameName;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$conditions['_string'] = $strCondition;
|
|
|
|
$conditions['_string'] = $strCondition;
|
|
|
|
|
|
|
|
|
|
|
|