正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -64,7 +64,7 @@ class Demo extends Command | @@ -64,7 +64,7 @@ class Demo extends Command | ||
| 64 | public function handle() | 64 | public function handle() |
| 65 | { | 65 | { |
| 66 | $projectModel = new Project(); | 66 | $projectModel = new Project(); |
| 67 | - $list = $projectModel->list(['delete_status'=>0,'id'=>1]); | 67 | + $list = $projectModel->list(['delete_status'=>0]); |
| 68 | $data = []; | 68 | $data = []; |
| 69 | foreach ($list as $v){ | 69 | foreach ($list as $v){ |
| 70 | echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL; | 70 | echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL; |
| @@ -82,7 +82,7 @@ class Demo extends Command | @@ -82,7 +82,7 @@ class Demo extends Command | ||
| 82 | echo date('Y-m-d H:i:s') . '设置的模版:'.json_encode($settingInfo) . PHP_EOL; | 82 | echo date('Y-m-d H:i:s') . '设置的模版:'.json_encode($settingInfo) . PHP_EOL; |
| 83 | if($settingInfo !== false){ | 83 | if($settingInfo !== false){ |
| 84 | $templateCommonModel = new BTemplateCommon(); | 84 | $templateCommonModel = new BTemplateCommon(); |
| 85 | - $commonList = $templateCommonModel->list(['is_custom'=>0]); | 85 | + $commonList = $templateCommonModel->list(['template_id'=>$settingInfo['template_id'],'is_custom'=>0]); |
| 86 | if(!empty($commonList)){ | 86 | if(!empty($commonList)){ |
| 87 | foreach ($commonList as $v){ | 87 | foreach ($commonList as $v){ |
| 88 | $typeArr = [1, 2, 3]; | 88 | $typeArr = [1, 2, 3]; |
-
请 注册 或 登录 后发表评论