正在显示
1 个修改的文件
包含
3 行增加
和
4 行删除
| @@ -56,12 +56,11 @@ class Demo extends Command | @@ -56,12 +56,11 @@ class Demo extends Command | ||
| 56 | $projectModel = new Project(); | 56 | $projectModel = new Project(); |
| 57 | $list = $projectModel->list(['type'=>['!=',0],'delete_status'=>0]); | 57 | $list = $projectModel->list(['type'=>['!=',0],'delete_status'=>0]); |
| 58 | foreach ($list as $v){ | 58 | foreach ($list as $v){ |
| 59 | + echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL; | ||
| 59 | ProjectServer::useProject($v['id']); | 60 | ProjectServer::useProject($v['id']); |
| 60 | $templateComModel = new BTemplateCom(); | 61 | $templateComModel = new BTemplateCom(); |
| 61 | - $info = $templateComModel->read(['source'=>5,'is_list'=>0]); | ||
| 62 | - if($info !== false){ | ||
| 63 | - echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL; | ||
| 64 | - } | 62 | + $templateComModel->edit(['source'=>3,'is_list'=>1],['source'=>5,'is_list'=>0,'is_custom'=>0]); |
| 63 | + $templateComModel->edit(['source'=>4,'is_list'=>1],['source'=>7,'is_list'=>0,'is_custom'=>0]); | ||
| 65 | DB::disconnect('custom_mysql'); | 64 | DB::disconnect('custom_mysql'); |
| 66 | } | 65 | } |
| 67 | 66 |
-
请 注册 或 登录 后发表评论