WIN-2308041133\Administrator 1 тиждень тому
батько
коміт
629348035a
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      app/models/store/StoreOrder.php

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

@@ -994,7 +994,7 @@ class StoreOrder extends BaseModel
                     $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('product_id', $product_info['product_id'])->where('level_id', $user['level'])->where('type', 1)->find();  //商品返现比例
                     @file_put_contents('quanju.txt', StoreProductLevel::getlastsql() . "-返利比例sql\r\n", 8);
                     @file_put_contents('quanju.txt', json_encode($product) . "-返利比例\r\n", 8);