|
|
@@ -1085,7 +1085,8 @@ class StoreOrderRepository extends BaseRepository
|
|
|
{
|
|
|
$cartIdArray = explode(',', $order['cart_id']); // 使用逗号分割字符串
|
|
|
$product_id = StoreCart::where('cart_id', $cartIdArray[0])->value('product_id');
|
|
|
- $product_type = StoreProduct::where('product_id', $product_id)->value('type');
|
|
|
+ $storeProduct = app()->make(StoreProduct::class);
|
|
|
+ $product_type =$storeProduct->where('product_id', $product_id)->value('type');
|
|
|
// 创建用户账单仓库实例
|
|
|
$make = app()->make(UserBillRepository::class);
|
|
|
$user = User::where('uid', $order['uid'])->find();
|