作者 lyh

gx

@@ -73,6 +73,6 @@ class DetailLogic extends BaseLogic @@ -73,6 +73,6 @@ class DetailLogic extends BaseLogic
73 }catch (\Exception $e){ 73 }catch (\Exception $e){
74 $this->fail('保存失败,请联系管理员.错误:'.$e->getMessage()); 74 $this->fail('保存失败,请联系管理员.错误:'.$e->getMessage());
75 } 75 }
76 - $this->success(['product_id'=>$this->param['product_id']]); 76 + return $this->success(['product_id'=>$this->param['product_id']]);
77 } 77 }
78 } 78 }
@@ -28,4 +28,8 @@ class News extends Base @@ -28,4 +28,8 @@ class News extends Base
28 public function getRelatedNewsIdAttribute($value){ 28 public function getRelatedNewsIdAttribute($value){
29 return Arr::setToArr($value); 29 return Arr::setToArr($value);
30 } 30 }
  31 +
  32 + public function getRelatedProductIdAttribute($value){
  33 + return Arr::setToArr($value);
  34 + }
31 } 35 }