|
@@ -1084,7 +1084,8 @@ class StoreOrderRepository extends BaseRepository
|
|
|
public function getOrderAward($order)
|
|
public function getOrderAward($order)
|
|
|
{
|
|
{
|
|
|
$cartIdArray = explode(',', $order['cart_id']); // 使用逗号分割字符串
|
|
$cartIdArray = explode(',', $order['cart_id']); // 使用逗号分割字符串
|
|
|
- var_dump($cartIdArray);die();
|
|
|
|
|
|
|
+ var_dump($order['cart_id']);
|
|
|
|
|
+ var_dump($cartIdArray[0]);die();
|
|
|
$product_id = StoreCart::where('id', $cartIdArray[0])->value('product_id');
|
|
$product_id = StoreCart::where('id', $cartIdArray[0])->value('product_id');
|
|
|
$product_type = StoreProduct::where('product_id', $product_id)->value('type');
|
|
$product_type = StoreProduct::where('product_id', $product_id)->value('type');
|
|
|
// 创建用户账单仓库实例
|
|
// 创建用户账单仓库实例
|