echo
This commit is contained in:
parent
c14e274038
commit
8c8dbb024a
@ -19,6 +19,9 @@ $packages = DB::table('virtual_packages')->get()->collect()->keyBy('sn')->toArra
|
||||
|
||||
foreach ($data as $values) {
|
||||
$values = array_values($values);
|
||||
|
||||
echo $values[0] . PHP_EOL;
|
||||
|
||||
$rows = DB::connection('vd_old')->table('ckb_custom_handle_log')->whereNotIn('type', [10, 15])
|
||||
->where('valid_start_time', '>=', 1546272000)
|
||||
->where('custom_no', $values[0])->orderBy('create_time')->get()->collect()->toArray();
|
||||
@ -27,6 +30,7 @@ foreach ($data as $values) {
|
||||
if ($key === 0) {
|
||||
$endTime = $item['valid_end_time'];
|
||||
} else {
|
||||
echo '.' . PHP_EOL;
|
||||
$startTime = strtotime("+{$package['effect_months']} month", $endTime + 1);
|
||||
$startTime = $item['create_time'] > $startTime ? strtotime(date('Y-m-01 00:00:00', $item['create_time'])) : $startTime;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user