|
...
|
...
|
@@ -53,12 +53,20 @@ class Demo extends Command |
|
|
|
protected $description = 'demo';
|
|
|
|
|
|
|
|
public function handle(){
|
|
|
|
$templateComModel = new BTemplateCom();
|
|
|
|
$templateComModel->edit(['source'=>2],['source'=>3,'is_list'=>1,'is_custom'=>0]);
|
|
|
|
$templateComModel->edit(['source'=>3],['source'=>4,'is_list'=>0,'is_custom'=>0]);
|
|
|
|
$templateComModel->edit(['source'=>3],['source'=>5,'is_list'=>1,'is_custom'=>0]);
|
|
|
|
$templateComModel->edit(['source'=>4],['source'=>6,'is_list'=>0,'is_custom'=>0]);
|
|
|
|
$templateComModel->edit(['source'=>4],['source'=>7,'is_list'=>1,'is_custom'=>0]);
|
|
|
|
$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();
|
|
|
|
$templateComModel->edit(['source'=>2],['source'=>3,'is_list'=>1,'is_custom'=>0]);
|
|
|
|
$templateComModel->edit(['source'=>3],['source'=>4,'is_list'=>0,'is_custom'=>0]);
|
|
|
|
$templateComModel->edit(['source'=>3],['source'=>5,'is_list'=>1,'is_custom'=>0]);
|
|
|
|
$templateComModel->edit(['source'=>4],['source'=>6,'is_list'=>0,'is_custom'=>0]);
|
|
|
|
$templateComModel->edit(['source'=>4],['source'=>7,'is_list'=>1,'is_custom'=>0]);
|
|
|
|
DB::disconnect('custom_mysql');
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public function synchronizationFile($path_name){
|
...
|
...
|
|