|
|
@@ -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);
|
|
|
|