diff --git a/Application/Admin/Model/CompanyGameRatioModel.class.php b/Application/Admin/Model/CompanyGameRatioModel.class.php index 793ddd335..6c96925a0 100644 --- a/Application/Admin/Model/CompanyGameRatioModel.class.php +++ b/Application/Admin/Model/CompanyGameRatioModel.class.php @@ -47,6 +47,11 @@ class CompanyGameRatioModel extends Model ]; $res = $this->where($map)->order("begin_time asc")->select(); $data = []; + if(empty($res)){ + $this->getGameMouldRadio($data,$game_id,$company_belong,$begintime,$endtime); + return $data; + } + foreach ($res as $ke => $va) { if($va['begin_time'] <= $begintime){ //