作者 赵彬吉
@@ -12,6 +12,7 @@ namespace App\Console\Commands\Ai; @@ -12,6 +12,7 @@ namespace App\Console\Commands\Ai;
12 use App\Models\Ai\AiBlog; 12 use App\Models\Ai\AiBlog;
13 use App\Models\Ai\AiBlogAuthor; 13 use App\Models\Ai\AiBlogAuthor;
14 use App\Models\Ai\AiBlogList; 14 use App\Models\Ai\AiBlogList;
  15 +use App\Models\Domain\DomainInfo;
15 use App\Models\Project\ProjectAiSetting; 16 use App\Models\Project\ProjectAiSetting;
16 use App\Models\RouteMap\RouteMap; 17 use App\Models\RouteMap\RouteMap;
17 use App\Services\AiBlogService; 18 use App\Services\AiBlogService;
@@ -107,6 +108,7 @@ class AiBlogTask extends Command @@ -107,6 +108,7 @@ class AiBlogTask extends Command
107 $this->updateAiBlogAuthor($aiSettingInfo,$val); 108 $this->updateAiBlogAuthor($aiSettingInfo,$val);
108 } 109 }
109 DB::disconnect('custom_mysql'); 110 DB::disconnect('custom_mysql');
  111 + $this->curlDelRoute($project_id);
110 } 112 }
111 return true; 113 return true;
112 } 114 }
@@ -196,4 +198,24 @@ class AiBlogTask extends Command @@ -196,4 +198,24 @@ class AiBlogTask extends Command
196 } 198 }
197 return true; 199 return true;
198 } 200 }
  201 +
  202 + /**
  203 + * @remark :通知C端生成界面
  204 + * @name :sendNotice
  205 + * @author :lyh
  206 + * @method :post
  207 + * @time :2025/3/6 11:51
  208 + */
  209 + public function curlDelRoute($project_id){
  210 + $domainModel = new DomainInfo();
  211 + //获取项目域名
  212 + $domain = $domainModel->getProjectIdDomain($project_id);
  213 + if(!empty($domain)){
  214 + $url = $domain.'api/update_page/?project_id='.$project_id.'&route=7';
  215 + shell_exec('curl -k "'.$url.'"');
  216 + }else{
  217 + echo '域名不存在:' . $project_id . PHP_EOL . date('Y-m-d H:i:s');
  218 + }
  219 + return true;
  220 + }
199 } 221 }
@@ -65,12 +65,23 @@ class InquiryForwardLogic extends BaseLogic @@ -65,12 +65,23 @@ class InquiryForwardLogic extends BaseLogic
65 public function getInquiryLists($map, $page, $row, $order = 'id', $filed = ['*']) 65 public function getInquiryLists($map, $page, $row, $order = 'id', $filed = ['*'])
66 { 66 {
67 $lists = $this->model->lists($map, $page, $row, $order, $filed); 67 $lists = $this->model->lists($map, $page, $row, $order, $filed);
68 - //获取各个状态询盘总数 68 + //统计各个状态询盘总数
  69 + if (isset($map['status'])) {
  70 + unset($map['status']);
  71 + }
  72 + $all_count = $this->model->counts($map);
  73 + $map['status'] = InquiryInfo::STATUS_INIT;
  74 + $un_count = $this->model->counts($map);
  75 + $map['status'] = InquiryInfo::STATUS_FINISH;
  76 + $suc_count = $this->model->counts($map);
  77 + $map['status'] = InquiryInfo::STATUS_INVALID;
  78 + $inv_count = $this->model->counts($map);
  79 +
69 $lists['count_stat'] = [ 80 $lists['count_stat'] = [
70 - 'all_count' => 0,  
71 - 'un_count' => 0,  
72 - 'suc_count' => 0,  
73 - 'inv_count' => 0, 81 + 'all_count' => $all_count,
  82 + 'un_count' => $un_count,
  83 + 'suc_count' => $suc_count,
  84 + 'inv_count' => $inv_count,
74 ]; 85 ];
75 86
76 return $this->success($lists); 87 return $this->success($lists);