|
...
|
...
|
@@ -11,6 +11,7 @@ namespace App\Console\Commands\LyhTest; |
|
|
|
|
|
|
|
use App\Console\Commands\Domain\DomainInfo;
|
|
|
|
use App\Http\Logic\Aside\Project\ProjectLogic;
|
|
|
|
use App\Models\Ai\AiBlog;
|
|
|
|
use App\Models\Ai\AiBlogAuthor;
|
|
|
|
use App\Models\Com\NoticeLog;
|
|
|
|
use App\Models\Com\V6WeeklyReport;
|
|
...
|
...
|
@@ -49,14 +50,15 @@ class lyhDemo extends Command |
|
|
|
protected $description = '更新路由';
|
|
|
|
|
|
|
|
public function handle(){
|
|
|
|
echo $this->trimToLastFullWord('Laravel is a web');
|
|
|
|
echo $this->trimToLastFullWord('You know, in the last few years, the world of global trade has really changed a lot, and Chinese manufacturing is right at the center of this shift. C');
|
|
|
|
die();
|
|
|
|
$projectModel = new Project();
|
|
|
|
$lists = $projectModel->list(['delete_status' => 0,'extend_type'=>0,'type'=>['in',[1,2,3,4,6]]], 'id', ['id']);
|
|
|
|
foreach ($lists as $val) {
|
|
|
|
echo date('Y-m-d H:i:s') . '开始--项目的id:'. $val['id'] . PHP_EOL;
|
|
|
|
ProjectServer::useProject($val['id']);
|
|
|
|
|
|
|
|
$aiBlogModel = new AiBlog();
|
|
|
|
$aiBlogModel->list(['status'=>2]);
|
|
|
|
DB::disconnect('custom_mysql');
|
|
|
|
}
|
|
|
|
return true;
|
...
|
...
|
|