正在显示
1 个修改的文件
包含
0 行增加
和
10 行删除
| @@ -263,20 +263,15 @@ class BTemplateLogic extends BaseLogic | @@ -263,20 +263,15 @@ class BTemplateLogic extends BaseLogic | ||
| 263 | // try { | 263 | // try { |
| 264 | $info = $this->webTemplateInfo($this->param['template_id'],$this->param['source'],$this->param['source_id']); | 264 | $info = $this->webTemplateInfo($this->param['template_id'],$this->param['source'],$this->param['source_id']); |
| 265 | //字符串截取 | 265 | //字符串截取 |
| 266 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export(11111, true) . PHP_EOL, FILE_APPEND); | ||
| 267 | $this->param = $this->stringProcessing($this->param); | 266 | $this->param = $this->stringProcessing($this->param); |
| 268 | //保存头部信息 | 267 | //保存头部信息 |
| 269 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export(22222, true) . PHP_EOL, FILE_APPEND); | ||
| 270 | $this->saveCommonTemplate($this->param); | 268 | $this->saveCommonTemplate($this->param); |
| 271 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export(33333, true) . PHP_EOL, FILE_APPEND); | ||
| 272 | $this->param = $this->templateSaveParam($this->param);//组装数据 | 269 | $this->param = $this->templateSaveParam($this->param);//组装数据 |
| 273 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export(44444, true) . PHP_EOL, FILE_APPEND); | ||
| 274 | if($info === false){ | 270 | if($info === false){ |
| 275 | $this->model->add($this->param); | 271 | $this->model->add($this->param); |
| 276 | }else{ | 272 | }else{ |
| 277 | $this->model->edit($this->param,['id'=>$info['id']]); | 273 | $this->model->edit($this->param,['id'=>$info['id']]); |
| 278 | } | 274 | } |
| 279 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export(5555, true) . PHP_EOL, FILE_APPEND); | ||
| 280 | //写入操作模版记录 | 275 | //写入操作模版记录 |
| 281 | $this->setTemplateLog($this->param); | 276 | $this->setTemplateLog($this->param); |
| 282 | // DB::commit(); | 277 | // DB::commit(); |
| @@ -380,11 +375,6 @@ class BTemplateLogic extends BaseLogic | @@ -380,11 +375,6 @@ class BTemplateLogic extends BaseLogic | ||
| 380 | $route = ''; | 375 | $route = ''; |
| 381 | //路由映射 | 376 | //路由映射 |
| 382 | RouteMap::setRoute('index', RouteMap::SOURCE_PAGE, 0, $this->user['project_id']); | 377 | RouteMap::setRoute('index', RouteMap::SOURCE_PAGE, 0, $this->user['project_id']); |
| 383 | - }elseif($source == BTemplate::SOURCE_PRODUCT){ | ||
| 384 | - $type = RouteMap::SOURCE_PRODUCT; | ||
| 385 | - $productModel = new Product(); | ||
| 386 | - $info = $productModel->read(['id'=>$source_id]); | ||
| 387 | - $route = $info['route']; | ||
| 388 | } | 378 | } |
| 389 | return $this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>$type, 'route'=>$route]); | 379 | return $this->updateNotify(['project_id'=>$this->user['project_id'], 'type'=>$type, 'route'=>$route]); |
| 390 | } | 380 | } |
-
请 注册 或 登录 后发表评论