|
|
|
@ -715,6 +715,10 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
$begin_time = strtotime(str_replace(".","-",$_REQUEST["begin_time"]));
|
|
|
|
|
$end_time = strtotime(str_replace(".","-",$_REQUEST["end_time"]))+86399;
|
|
|
|
|
|
|
|
|
|
$check_list = array_column(json_decode($_POST["list"],true),"game_name");
|
|
|
|
|
|
|
|
|
|
// dump($check_list);die();
|
|
|
|
|
|
|
|
|
|
if (!$company_id) {
|
|
|
|
|
$data = [];
|
|
|
|
|
} else {
|
|
|
|
@ -736,9 +740,11 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($value['company_type'] == 1) {
|
|
|
|
|
$list = array_merge($list, $statement_info);
|
|
|
|
|
// $list = array_merge(, $statement_info);
|
|
|
|
|
foreach ($statement_info as $k => $v) {
|
|
|
|
|
|
|
|
|
|
if (!in_array($v["game_name"],$check_list)) {
|
|
|
|
|
array_push($list,$v);
|
|
|
|
|
}
|
|
|
|
|
$statement_begin_time = strtotime(str_replace(".", "-", $v['statement_begin_time']));
|
|
|
|
|
$statement_end_time = strtotime(str_replace(".", "-", $v['statement_end_time'])) + 86399;
|
|
|
|
|
|
|
|
|
@ -765,8 +771,13 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
} elseif($value['company_type'] == 2) {
|
|
|
|
|
foreach ($statement_info as $k => $v) {
|
|
|
|
|
$game_list = $v["game_list"];
|
|
|
|
|
$list = array_merge($list, $game_list);
|
|
|
|
|
// $list = array_merge($list, $game_list);
|
|
|
|
|
foreach ($game_list as $gk=>$gv) {
|
|
|
|
|
|
|
|
|
|
if (!in_array($gv["game_name"],$check_list)) {
|
|
|
|
|
array_push($list,$gv);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$statement_begin_time = strtotime(str_replace(".", "-", $gv['statement_begin_time']));
|
|
|
|
|
$statement_end_time = strtotime(str_replace(".", "-", $gv['statement_end_time'])) + 86399;
|
|
|
|
|
|
|
|
|
|