Browse Source

info json格式

master
李可松 4 years ago
parent
commit
dd75a819d4
  1. 2
      app/AdminAgent/Forms/IndustryProductBuy.php
  2. 1
      app/Models/IndustryOrder.php

2
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();

1
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()

Loading…
Cancel
Save