$create = [
'title' => $data['title'],
'describes' => $data['introduce'],
'promotions_detail' => json_encode([
'type' => $data['discount_type'],
'point' => $data['discount']
]),
'time_limit' => $data['deadline'],
'extend' => json_encode($data),
'status' => 1
];
$res = Coupon::create($create);
通過這樣寫入數(shù)據(jù)庫會報錯,請問什么原因,php7.2的版本
- 2 回答
- 0 關注
- 3091 瀏覽
添加回答
舉報
0/150
提交
取消