WIN-2308041133\Administrator 8 bulan lalu
induk
melakukan
8f3f481993
1 mengubah file dengan 5 tambahan dan 5 penghapusan
  1. 5 5
      app/models/store/StoreOrder.php

+ 5 - 5
app/models/store/StoreOrder.php

@@ -945,7 +945,7 @@ class StoreOrder extends BaseModel
             }
                 $rebate=0;
                 $userInfo = User::get($uid);
-                @file_put_contents('quanju4.txt',$order['cart_id'] . "-购物车id1\r\n", 8);
+                @file_put_contents('quanju4.txt',json_encode($order['cart_id']) . "-购物车id1\r\n", 8);
 //            $shopping_cart = json_decode($order['cart_id'], true);
             $shopping_cart = $order['cart_id'];
 //            先不考虑什么商品返现比例了
@@ -953,22 +953,22 @@ class StoreOrder extends BaseModel
                 @file_put_contents('quanju4.txt',$cart . "-购物车id2\r\n", 8);
                 $product_radio=0;
                 $product_info = StoreCart::where('id', $cart)->find()->toArray();
-                @file_put_contents('quanju.txt', json_encode($product_info) . "-购物车详情\r\n", 8);
+                @file_put_contents('quanju4.txt', json_encode($product_info) . "-购物车详情\r\n", 8);
                 $product = StoreProduct::where('id', $product_info['product_id'])->find();  //商品返现比例
                 if (!empty($product)){
                     $product = $product->toArray();
                     $product_radio = $product['rebate_ratio'];
                 }
-                @file_put_contents('quanju.txt', json_encode($product) . "-商品详情\r\n", 8);
+                @file_put_contents('quanju4.txt', json_encode($product) . "-商品详情\r\n", 8);
 
 
                 if ($product_radio>0){
-                    @file_put_contents('quanju.txt', $user_radio . "-会员等级激励奖报错内容4\r\n", 8);
+                    @file_put_contents('quanju4.txt', $user_radio . "-会员等级激励奖报错内容4\r\n", 8);
 
                     $rebate = bcmul($order['pay_price'], bcdiv($user_radio, 100, 2), 2);  //用户返现金额
                     if ($rebate>0){
                         $blance = bcadd($userInfo['brokerage_price'], $rebate, 2);  //用户佣金
-                        @file_put_contents('quanju.txt', json_encode(['line' => $rebate, 'message' => $order['id'], 'file' => $blance]) . "-会员等级激励奖报错内容2\r\n", 8);
+                        @file_put_contents('quanju4.txt', json_encode(['line' => $rebate, 'message' => $order['id'], 'file' => $blance]) . "-会员等级激励奖报错内容2\r\n", 8);
 
                         if ($type == 1) {
                             UserBill::income('商品返利', $uid, 'brokerage_price', 'order_money', $rebate, $order['id'], $blance, '商品返利佣金');