作者 lyh

gx

... ... @@ -53,14 +53,11 @@ class UpdateRoute extends Command
* @time :2023/11/20 15:13
*/
public function handle(){
ProjectServer::useProject(91);
$this->getProductKeyword();
DB::disconnect('custom_mysql');
$projectModel = new Project();
$list = $projectModel->list(['type'=>['in',[1,2,3,4]]]);
foreach ($list as $v){
ProjectServer::useProject($v['id']);
$this->getProductKeyword($v['id']);
$this->getProductKeyword();
DB::disconnect('custom_mysql');
}
echo date('Y-m-d H:i:s') . 'end' . PHP_EOL;
... ... @@ -73,7 +70,7 @@ class UpdateRoute extends Command
* @method :post
* @time :2023/12/8 11:13
*/
public function getProductKeyword($project_id){
public function getProductKeyword(){
$keywordModel = new Keyword();
$lists = $keywordModel->list(['status'=>1]);
if(!empty($lists)){
... ...