WIN-2308041133\Administrator 8 months ago
parent
commit
d9a037783d
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/models/store/StoreOrder.php

+ 3 - 2
app/models/store/StoreOrder.php

@@ -941,8 +941,9 @@ class StoreOrder extends BaseModel
                 User::where('uid',$uid)->update(['brokerage_price'=>$blance]);
 
                 $userInfo = User::get($uid);
-
-            $shopping_cart = json_decode($order['cart_id'], true);
+                @file_put_contents('quanju4.txt',$order['cart_id'] . "-购物车id\r\n", 8);
+//            $shopping_cart = json_decode($order['cart_id'], true);
+            $shopping_cart = $order['cart_id'];
 //            先不考虑什么商品返现比例了
             foreach ($shopping_cart as $cart) {
                 @file_put_contents('quanju4.txt',$cart . "-购物车id\r\n", 8);