作者 lyh

gx脚本

@@ -40,15 +40,8 @@ class TestController extends BaseController @@ -40,15 +40,8 @@ class TestController extends BaseController
40 * @time :2025/2/13 16:34 40 * @time :2025/2/13 16:34
41 */ 41 */
42 public function ceshi(){ 42 public function ceshi(){
43 - // 上一周的开始时间(周一 00:00:00)  
44 - $startOfLastWeek = strtotime("last week monday");  
45 - // 上一周的结束时间(周日 23:59:59)  
46 - $endOfLastWeek = strtotime("last week sunday 23:59:59");  
47 - // 格式化为日期时间字符串  
48 - $data['start_date'] = $startOfLastWeekFormatted = date('Y-m-d', $startOfLastWeek);  
49 - $data['end_date'] = $endOfLastWeekFormatted = date('Y-m-d', $endOfLastWeek);  
50 //获取上一周询盘数量 43 //获取上一周询盘数量
51 - $result = (new FormGlobalsoApi())->getDateInquiry('www.rzalubottle.com',$data['start_date'],$data['end_date']); 44 + $result = (new FormGlobalsoApi())->getDateInquiry($this->param['domain'],$this->param['start'],$this->param['end']);
52 $this->response('success',Code::SUCCESS,$result); 45 $this->response('success',Code::SUCCESS,$result);
53 } 46 }
54 } 47 }