作者 lyh

gx

@@ -88,7 +88,7 @@ class CountLogic extends BaseLogic @@ -88,7 +88,7 @@ class CountLogic extends BaseLogic
88 * @time :2023/5/24 14:03 88 * @time :2023/5/24 14:03
89 */ 89 */
90 public function keyword_data_count(){ 90 public function keyword_data_count(){
91 - $yesterday = Carbon::yesterday()->toDateString(); 91 + $yesterday = date('Y-m-d');
92 $rankDataModel = new RankDataModel(); 92 $rankDataModel = new RankDataModel();
93 $param = [ 93 $param = [
94 'updated_date' => $yesterday, 94 'updated_date' => $yesterday,
@@ -27,19 +27,5 @@ class EnableCrossRequestMiddleware @@ -27,19 +27,5 @@ class EnableCrossRequestMiddleware
27 exit; 27 exit;
28 } 28 }
29 return $response; 29 return $response;
30 - // 指定允许其他域名访问  
31 -// $http_origin = "*";  
32 -// if(isset($_SERVER['HTTP_ORIGIN'])){  
33 -// $http_origin = $_SERVER['HTTP_ORIGIN'];  
34 -// }  
35 -// header("Access-Control-Allow-Origin:".$http_origin);  
36 -// header('Access-Control-Allow-Methods:POST,GET'); //支持的http 动作  
37 -// header('Access-Control-Allow-Credentials: true');  
38 -// header('Access-Control-Max-Age: 1000');  
39 -// header('Access-Control-Allow-Headers:Origin, X-Requested-With, Content-Type, Accept, Authorization, token'); //响应头 请按照自己需求添加。  
40 -// if (strtolower($_SERVER['REQUEST_METHOD']) == 'options') {  
41 -// exit;  
42 -// }  
43 -// return $next($request);  
44 } 30 }
45 } 31 }