作者 lyh

gx

... ... @@ -50,15 +50,14 @@ class EditPage extends Command
//获取所有项目
$projectModel = new Project();
$list = $projectModel->list(['type'=>['in',[1,2,3,4]]]);
try {
foreach ($list as $v){
echo date('Y-m-d H:i:s') . ' start: '. $v['id'] . PHP_EOL;
ProjectServer::useProject($v['id']);
BCustomTemplate::where('url', 'like', '%-tag%')
->update(['url' => DB::raw("REPLACE(url, '-tag', '')")]);
RouteMap::where('url', 'like', '%-tag%')->where('source','page')
->update(['url' => DB::raw("REPLACE(url, '-tag', '')")]);
RouteMap::where('route', 'like', '%-tag%')->where('source','page')
->update(['route' => DB::raw("REPLACE(route, '-tag', '')")]);
DB::disconnect('custom_mysql');
}
}catch (\Exception $e){
... ...