优化比例为空

master
chenzhi 4 years ago
parent c27315d3c0
commit 96b296a4b6

@ -47,6 +47,11 @@ class CompanyGameRatioModel extends Model
]; ];
$res = $this->where($map)->order("begin_time asc")->select(); $res = $this->where($map)->order("begin_time asc")->select();
$data = []; $data = [];
if(empty($res)){
$this->getGameMouldRadio($data,$game_id,$company_belong,$begintime,$endtime);
return $data;
}
foreach ($res as $ke => $va) { foreach ($res as $ke => $va) {
if($va['begin_time'] <= $begintime){ if($va['begin_time'] <= $begintime){
// //

Loading…
Cancel
Save