|
...
|
...
|
@@ -56,12 +56,11 @@ class Demo extends Command |
|
|
|
$projectModel = new Project();
|
|
|
|
$list = $projectModel->list(['type'=>['!=',0],'delete_status'=>0]);
|
|
|
|
foreach ($list as $v){
|
|
|
|
echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL;
|
|
|
|
ProjectServer::useProject($v['id']);
|
|
|
|
$templateComModel = new BTemplateCom();
|
|
|
|
$info = $templateComModel->read(['source'=>5,'is_list'=>0]);
|
|
|
|
if($info !== false){
|
|
|
|
echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL;
|
|
|
|
}
|
|
|
|
$templateComModel->edit(['source'=>3,'is_list'=>1],['source'=>5,'is_list'=>0,'is_custom'=>0]);
|
|
|
|
$templateComModel->edit(['source'=>4,'is_list'=>1],['source'=>7,'is_list'=>0,'is_custom'=>0]);
|
|
|
|
DB::disconnect('custom_mysql');
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|