WIN-2308041133\Administrator пре 1 недеља
родитељ
комит
b0c508f52a
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      app/models/store/StoreOrder.php

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

@@ -992,13 +992,15 @@ class StoreOrder extends BaseModel
 //                @file_put_contents('quanju4.txt', $cart . "-购物车id2\r\n", 8);
 //                @file_put_contents('quanju4.txt', $cart . "-购物车id2\r\n", 8);
                     $product_radio = 0;
                     $product_radio = 0;
                     $product_info = StoreCart::where('id', $cart)->find()->toArray();
                     $product_info = StoreCart::where('id', $cart)->find()->toArray();
+                    @file_put_contents('quanju.txt', json_encode($product_info) . "-购物车信息\r\n", 8);
 
 
                     $product = StoreProductLevel::where('id', $product_info['product_id'])->where('level_id', $user['level'])->where('type', 1)->find();  //商品返现比例
                     $product = StoreProductLevel::where('id', $product_info['product_id'])->where('level_id', $user['level'])->where('type', 1)->find();  //商品返现比例
+                    @file_put_contents('quanju.txt', json_encode($product) . "-返利比例\r\n", 8);
+
                     if (!empty($product)) {
                     if (!empty($product)) {
                         $product = $product->toArray();
                         $product = $product->toArray();
                         $product_radio = $product['rebate_ratio'];
                         $product_radio = $product['rebate_ratio'];
                     }
                     }
-                    @file_put_contents('quanju.txt', $product_radio . "-返利比例\r\n", 8);
 
 
 
 
                     if ($product_radio > 0) {
                     if ($product_radio > 0) {