|
@@ -960,7 +960,13 @@ class StoreOrderCreateRepository extends StoreOrderRepository
|
|
|
// 获取商品类型
|
|
// 获取商品类型
|
|
|
$product_id = StoreCart::where('cart_id', $cartId[0])->value('product_id');
|
|
$product_id = StoreCart::where('cart_id', $cartId[0])->value('product_id');
|
|
|
$storeProduct = app()->make(Product::class);
|
|
$storeProduct = app()->make(Product::class);
|
|
|
- $product_type =$storeProduct->where('product_id', $product_id)->value('type');
|
|
|
|
|
|
|
+ $is_oil =$storeProduct->where('product_id', $product_id)->value('is_oil');
|
|
|
|
|
+ $is_gift =$storeProduct->where('product_id', $product_id)->value('is_gift');
|
|
|
|
|
+ if ($is_oil == 1){
|
|
|
|
|
+ $product_type = 1;
|
|
|
|
|
+ }elseif ($is_gift == 1){
|
|
|
|
|
+ $product_type = 2;
|
|
|
|
|
+ }
|
|
|
//Cache::delete($cache_key);
|
|
//Cache::delete($cache_key);
|
|
|
//订单支付以后是否支持取消, 目前仅用于预约商品
|
|
//订单支付以后是否支持取消, 目前仅用于预约商品
|
|
|
$is_cancel = 0;
|
|
$is_cancel = 0;
|