添加后台代理代码
This commit is contained in:
24
codes/agent/game/dlweb/api/date.php
Normal file
24
codes/agent/game/dlweb/api/date.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
$start = isset($_GET['start']) ? $_GET['start'] : '2019-04-12';
|
||||
$end = isset($_GET['end']) ? $_GET['end'] : date('Y-m-d', strtotime('-1 days'));
|
||||
$day = 38;
|
||||
|
||||
$list = [];
|
||||
array_push($list, $start);
|
||||
|
||||
|
||||
$date=date_create($start);
|
||||
$tmp = '';
|
||||
$times = 0;
|
||||
while($tmp !== $end && $times < 200) {
|
||||
date_add($date, date_interval_create_from_date_string("1 days"));
|
||||
$tmp = date_format($date, "Y-m-d");
|
||||
array_push($list, $tmp);
|
||||
$times++;
|
||||
}
|
||||
|
||||
echo implode($list, ',');
|
||||
|
||||
echo '<pre>';
|
||||
print_r($list);
|
||||
Reference in New Issue
Block a user