|
|
@@ -143,10 +143,6 @@ class ProductRepository extends BaseRepository
|
|
|
const DEFINE_TYPE_CARD = 3;
|
|
|
//预约商品
|
|
|
const DEFINE_TYPE_RESERVATION = 4;
|
|
|
- //节能油商品
|
|
|
- const DEFINE_TYPE_Energy_Saving_Oil = 5;
|
|
|
- //礼包商品
|
|
|
- const DEFINE_TYPE_Gift_Pack = 6;
|
|
|
|
|
|
// 普通商品
|
|
|
const PRODUCT_TYPE_NORMAL = 0;
|
|
|
@@ -653,7 +649,9 @@ class ProductRepository extends BaseRepository
|
|
|
'active_id' => $data['active_id'] ?? 0,
|
|
|
'bar_code_number' => $data['bar_code_number'] ?? '',
|
|
|
'auto_off_time' => isset($data['auto_off_time']) ? strtotime($data['auto_off_time']) : 0,
|
|
|
- 'labels' => $data['mer_labels'] ? json_encode($data['mer_labels']) : ''
|
|
|
+ 'labels' => $data['mer_labels'] ? json_encode($data['mer_labels']) : '',
|
|
|
+ 'is_gift' => $data['is_gift'] ?? 0,
|
|
|
+ 'is_oil' => $data['is_oil'] ?? 0
|
|
|
];
|
|
|
if (isset($data['extend']))
|
|
|
$result['extend'] = $data['extend'] ? json_encode($data['extend'], JSON_UNESCAPED_UNICODE) : '';
|