You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
570 B
26 lines
570 B
4 weeks ago
|
<?php
|
||
|
/**
|
||
|
* 同步平台收支日统计
|
||
|
* @package crontab
|
||
|
*/
|
||
|
|
||
|
include_once(dirname(dirname(dirname(__FILE__)))."/library/publicBase.php");
|
||
|
|
||
|
class syncStatsSummary {
|
||
|
public function __construct() {
|
||
|
$obj = new mStats();
|
||
|
|
||
|
//为防止退单误差 统计前7天的数据
|
||
|
$dates = [];
|
||
|
for ($i = 1; $i <= 7; $i++) {
|
||
|
$dates[] = date("Y-m-d", time() - $i * 86400);
|
||
|
}
|
||
|
|
||
|
foreach ($dates as $date) {
|
||
|
$obj->syncSaleSummaryByDay($date);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
new syncStatsSummary();
|