|
|
@ -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){
|
|
|
|
//
|
|
|
|
//
|
|
|
|