|
|
|
@ -791,6 +791,7 @@ class StatementMangementController extends ThinkController
|
|
|
|
|
$record = [];
|
|
|
|
|
$detail = [];
|
|
|
|
|
$md5 = '';
|
|
|
|
|
dump($checkarr);
|
|
|
|
|
foreach ($checkarr as $k => $v) {
|
|
|
|
|
|
|
|
|
|
if ($v['game_name']) {
|
|
|
|
@ -803,9 +804,9 @@ class StatementMangementController extends ThinkController
|
|
|
|
|
$record["relation_game_id"] = $game_data["relation_game_id"]?$game_data["relation_game_id"]:0;
|
|
|
|
|
$record["content"] = $v["content"];
|
|
|
|
|
|
|
|
|
|
$record["reward_time"] = strtotime(gmdate("Y-m-d", \PHPExcel_Shared_Date::ExcelToPHP($v["reward_time"])));
|
|
|
|
|
$record["confirm_time"] = strtotime(gmdate("Y-m-d", \PHPExcel_Shared_Date::ExcelToPHP($v["confirm_time"])));
|
|
|
|
|
$record["settlement_time"] = strtotime(gmdate("Y-m-d", \PHPExcel_Shared_Date::ExcelToPHP($v["settlement_time"])));
|
|
|
|
|
$record["reward_time"] = strtotime($v["reward_time"]);
|
|
|
|
|
$record["confirm_time"] = strtotime($v["confirm_time"]);
|
|
|
|
|
$record["settlement_time"] = strtotime($v["settlement_time"]);
|
|
|
|
|
$record["create_time"] = time();
|
|
|
|
|
$record["creater_id"] = $_SESSION['onethink_admin']['user_auth']['uid'];
|
|
|
|
|
|
|
|
|
@ -880,17 +881,15 @@ class StatementMangementController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// dump($all_record);
|
|
|
|
|
// die();
|
|
|
|
|
foreach ($all_record as $key => $value) {
|
|
|
|
|
|
|
|
|
|
$insert_id = SM("reward_record","tab_")->add($value);
|
|
|
|
|
|
|
|
|
|
foreach ($all_detail[$key] as $k => $v) {
|
|
|
|
|
$all_detail[$key][$k]['record_id'] = $insert_id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$is_success = SM("reward_detail","tab_")->addAll($all_detail[$key]);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$this->ajaxReturn(["status" => 1, "msg" => "导入成功"]);
|
|
|
|
|