|
...
|
...
|
@@ -147,7 +147,6 @@ class ComController extends BaseController |
|
|
|
}
|
|
|
|
|
|
|
|
public function ceshi(){
|
|
|
|
date_default_timezone_set('Asia/Shanghai');
|
|
|
|
$arr = [];
|
|
|
|
$inquiry_list = (new FormGlobalsoApi())->getInquiryList('https://demomark.globalso.com/','',1,100000000);
|
|
|
|
//总数
|
|
...
|
...
|
@@ -155,9 +154,11 @@ class ComController extends BaseController |
|
|
|
//数据详情
|
|
|
|
$data = $inquiry_list['data']['data'];
|
|
|
|
// 获取上个月的开始时间
|
|
|
|
$startTime = Carbon::now()->subMonth()->startOfMonth();
|
|
|
|
date_default_timezone_set('Asia/Shanghai');
|
|
|
|
$currentDateTime = Carbon::now();
|
|
|
|
$startTime = $currentDateTime->subMonth()->startOfMonth();
|
|
|
|
// 获取上个月的结束时间
|
|
|
|
$endTime = Carbon::now()->subMonth()->endOfMonth();
|
|
|
|
$endTime = $currentDateTime->subMonth()->endOfMonth();
|
|
|
|
$arr['month_total'] = 0;
|
|
|
|
$countryArr = [];
|
|
|
|
foreach ($data as $v){
|
...
|
...
|
|