wang hou sheng 7 months ago
parent bd168b14c9
commit 8b1b609872
  1. 6
      app/api/controller/Data.php

@ -13,9 +13,9 @@ declare (strict_types=1);
namespace app\api\controller;
use app\api\service\statistics\Data as StatisticsDataService;
use think\db\exception\ModelNotFoundException;
use think\response\Json;
use app\api\service\statistics\Data as StatisticsDataService;
/**
* 数据概况
@ -49,6 +49,10 @@ class Data extends Controller
*/
public function statistics($startDate = null, $endDate = null): Json
{
if (empty($startDate) || empty($endDate)) {
$startDate = null;
$endDate = null;
}
// 获取数据
$data = [
// 订单数据

Loading…
Cancel
Save