正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -72,9 +72,9 @@ class UpdateRoute extends Command | @@ -72,9 +72,9 @@ class UpdateRoute extends Command | ||
| 72 | public function ceshi($project_id){ | 72 | public function ceshi($project_id){ |
| 73 | $templateModel = new BTemplate(); | 73 | $templateModel = new BTemplate(); |
| 74 | $info = $templateModel->orderBy('id','desc')->first(); | 74 | $info = $templateModel->orderBy('id','desc')->first(); |
| 75 | - if($info !== false){ | 75 | + if(!empty($info)){ |
| 76 | $webSettingModel = new Setting(); | 76 | $webSettingModel = new Setting(); |
| 77 | - $webSettingModel->add(['template_id'=>$info->template_id],'project_id'=>$project_id]); | 77 | + $webSettingModel->add(['template_id'=>$info->template_id,'project_id'=>$project_id]); |
| 78 | } | 78 | } |
| 79 | } | 79 | } |
| 80 | 80 |
-
请 注册 或 登录 后发表评论