Merge branch 'feature/add_item' of wmtx/platform into release

最大值判断添加
master
郑永星 4 years ago committed by Gogs
commit 37d1419bb9

@ -48,7 +48,7 @@ class CompanyGameRatioModel extends Model
if ($value['begin_time'] > $company_begin_time) {
$game_ratio[$game_id] = array_merge($game_ratio[$game_id],$this->getGameRadio($company_id,$game_id,$company_belong,$company_begin_time,$value['begin_time']));
if ($value['end_time'] >= $company_end_time) {
if ($value['end_time'] >= $company_end_time || !$value['end_time']) {
// $game_ratio[$game_id] = array_merge($game_ratio[$game_id],[[
// "begintime" => $value['begin_time'],
// "endtime"=>$company_end_time,
@ -75,7 +75,7 @@ class CompanyGameRatioModel extends Model
}
}
} else {
if ($value['end_time'] >= $company_end_time) {
if ($value['end_time'] >= $company_end_time || !$value['end_time']) {
// $game_ratio[$game_id] = array_merge($game_ratio[$game_id],[[
// "begintime" => $company_begin_time,
// "endtime"=>$company_end_time,

Loading…
Cancel
Save