作者 lyh

gx

1 -<?php  
2 -/**  
3 - * @remark :  
4 - * @name :GenerateVideo.php  
5 - * @author :lyh  
6 - * @method :post  
7 - * @time :2024/2/26 11:47  
8 - */  
9 -  
10 -namespace App\Console\Commands\KeywordInVideo;  
11 -  
12 -use Illuminate\Console\Command;  
13 -  
14 -class GenerateVideo extends Command  
15 -{  
16 - /**  
17 - * The name and signature of the console command.  
18 - *  
19 - * @var string  
20 - */  
21 - protected $signature = 'generate_video';  
22 -  
23 - /**  
24 - * The console command description.  
25 - *  
26 - * @var string  
27 - */  
28 - protected $description = '根据关键词生成视频';  
29 -  
30 - /**  
31 - * Create a new command instance.  
32 - *  
33 - * @return void  
34 - */  
35 - public function __construct()  
36 - {  
37 - parent::__construct();  
38 - }  
39 -  
40 - public function handle()  
41 - {  
42 -  
43 - }  
44 -}  
@@ -153,6 +153,7 @@ class MonthCountLogic extends BaseLogic @@ -153,6 +153,7 @@ class MonthCountLogic extends BaseLogic
153 $source = DB::connection('custom_mysql')->table('gl_customer_visit') 153 $source = DB::connection('custom_mysql')->table('gl_customer_visit')
154 ->select('referrer_url', DB::raw('COUNT(*) as count')) 154 ->select('referrer_url', DB::raw('COUNT(*) as count'))
155 ->groupBy('referrer_url') 155 ->groupBy('referrer_url')
  156 + ->where('referrer_url','!=','')
156 ->whereBetween('updated_date', [$startTime,$endTime]) 157 ->whereBetween('updated_date', [$startTime,$endTime])
157 ->orderByDesc('count')->limit(10)->get()->toArray(); 158 ->orderByDesc('count')->limit(10)->get()->toArray();
158 $arr['source'] = $source; 159 $arr['source'] = $source;
@@ -12,6 +12,7 @@ namespace App\Http\Logic\Bside\Scoring; @@ -12,6 +12,7 @@ namespace App\Http\Logic\Bside\Scoring;
12 use App\Http\Logic\Bside\BaseLogic; 12 use App\Http\Logic\Bside\BaseLogic;
13 use App\Models\Scoring\RatingQuestion; 13 use App\Models\Scoring\RatingQuestion;
14 use App\Models\Scoring\ScoringSystem; 14 use App\Models\Scoring\ScoringSystem;
  15 +use AWS\CRT\Log;
15 16
16 class RatingLogic extends BaseLogic 17 class RatingLogic extends BaseLogic
17 { 18 {
@@ -77,6 +78,10 @@ class RatingLogic extends BaseLogic @@ -77,6 +78,10 @@ class RatingLogic extends BaseLogic
77 } 78 }
78 $str = trim($str,'&'); 79 $str = trim($str,'&');
79 $url = "http://www.quanqiusou.cn/extend_api/api/service_score.php?postid=$postId&token=$token&ftype=$fType&$str"; 80 $url = "http://www.quanqiusou.cn/extend_api/api/service_score.php?postid=$postId&token=$token&ftype=$fType&$str";
80 - return http_get($url,['charset=utf-8']); 81 + $rs = http_get($url,['charset=utf-8']);
  82 +// \Illuminate\Support\Facades\Log::info('同步打分系统信息:'.$url);
  83 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($url, true) . PHP_EOL, FILE_APPEND);
  84 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($rs, true) . PHP_EOL, FILE_APPEND);
  85 + return $rs;
81 } 86 }
82 } 87 }