diff --git a/app/AdminAgent/Forms/IndustryProductBuy.php b/app/AdminAgent/Forms/IndustryProductBuy.php index 2245526..2cfd15a 100644 --- a/app/AdminAgent/Forms/IndustryProductBuy.php +++ b/app/AdminAgent/Forms/IndustryProductBuy.php @@ -98,7 +98,7 @@ class IndustryProductBuy extends Form 'created_at' => now(), 'prepay_price' => $prepay_price, 'single_price' => $industry->single_deposit, - 'info' => json_encode($input['info']), + 'info' => $input['info'], ]); DB::commit(); diff --git a/app/Models/IndustryOrder.php b/app/Models/IndustryOrder.php index e199fdc..c0072f1 100644 --- a/app/Models/IndustryOrder.php +++ b/app/Models/IndustryOrder.php @@ -10,6 +10,7 @@ class IndustryOrder extends BaseModel use HasDateTimeFormatter; use SoftDeletes; + protected $casts = ['info' => 'json']; protected $guarded = ['id']; public function supplier()