|
...
|
...
|
@@ -205,6 +205,7 @@ class ProductController extends BaseController |
|
|
|
]);
|
|
|
|
$info = $product->read(['id'=>$this->param['id']]);
|
|
|
|
$info = $this->handleParam($info);
|
|
|
|
|
|
|
|
return $this->response('success',Code::SUCCESS,$info);
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -235,7 +236,10 @@ class ProductController extends BaseController |
|
|
|
$v['keyword_id_text'] = trim($v['keyword_id_text'],',');
|
|
|
|
}
|
|
|
|
$v['status_text'] = Product::statusMap()[$v['status']] ?? '';
|
|
|
|
$v['is_renovation'] = $this->getProductIsRenovation($v,$v['id']);
|
|
|
|
//获取当前用户选择的模版
|
|
|
|
$templateSettingModel = new BSetting();
|
|
|
|
$templateInfo = $templateSettingModel->read(['project_id'=>$this->user['project_id']]);
|
|
|
|
$v['is_renovation'] = $this->getProductIsRenovation($templateInfo,$v['id']);
|
|
|
|
$v['url'] = $this->user['domain'].$v['route'];
|
|
|
|
return $v;
|
|
|
|
}
|
...
|
...
|
|