作者 lyh

gx

... ... @@ -36,6 +36,9 @@ class NavLogic extends BaseLogic
{
DB::beginTransaction();
try {
if(isset($this->param['image']) && !empty($this->param['image'])){
$this->param['image'] = str_replace_url($this->param['image']);
}
if(isset($this->param['id']) && !empty($this->param['id'])){
$this->handleEditParam();//验证是否可编辑分类
$this->model->edit($this->param,['id'=>$this->param['id']]);
... ...
... ... @@ -50,4 +50,17 @@ class BNav extends Base
{
return static::where(['pid'=>$id,'project_id'=>$project_id])->limit(1)->count();
}
/**
* @remark :获取图片
* @name :getImageAttribute
* @author :lyh
* @method :post
* @time :2023/9/18 16:20
*/
public function getImageAttribute($value)
{
$value = getImageUrl($value);
return $value;
}
}
... ...