添加商品详情返回成长值
parent
a64dcb3fa3
commit
daf63c8399
|
|
@ -103,7 +103,7 @@ class ShareBgController extends AdminController
|
|||
$form->number('x')->min(0)->default(0)->required();
|
||||
$form->number('y')->min(0)->default(0)->required();
|
||||
$form->number('size')->min(0)->default(0)->required();
|
||||
$form->switch('is_use')->default(0)->required();
|
||||
$form->switch('is_use')->default(0);
|
||||
$form->number('sort')->min(0)->default(0);
|
||||
$form->text('remark');
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ class ProduckSkuResource extends JsonResource
|
|||
'buynote' => (string) $this->when($this->relationLoaded('buynote'), function () {
|
||||
return $this->buynote?->content;
|
||||
}),
|
||||
'growth_value' => (int) $this->growth_value,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue