|
...
|
...
|
@@ -47,7 +47,6 @@ class ProductLogic extends BaseLogic |
|
|
|
$this->param = $this->handleSaveParam($this->param);
|
|
|
|
try {
|
|
|
|
if(isset($this->param['id']) && !empty($this->param['id'])){
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($this->param, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
$seo_mate = (array)$this->model->read(['id'=>$this->param['id']],['seo_mate'])['seo_mate'];
|
|
|
|
$is_upgrade = $this->param['is_upgrade'] ?? 0;//1:5.0数据 0:6.0
|
|
|
|
$six_read = $this->param['six_read'] ?? 0;//是否按6.0显示
|
|
...
|
...
|
@@ -59,6 +58,7 @@ class ProductLogic extends BaseLogic |
|
|
|
}
|
|
|
|
$this->param['seo_mate'] = json_encode($seo_mate,true);
|
|
|
|
$route = $this->param['route'];
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($this->param, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
$this->model->edit($this->param,['id'=>$this->param['id']]);
|
|
|
|
$id = $this->param['id'];
|
|
|
|
}else{
|
...
|
...
|
|