|
|
@@ -992,13 +992,15 @@ 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);
|
|
|
|
|
|
$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)) {
|
|
|
$product = $product->toArray();
|
|
|
$product_radio = $product['rebate_ratio'];
|
|
|
}
|
|
|
- @file_put_contents('quanju.txt', $product_radio . "-返利比例\r\n", 8);
|
|
|
|
|
|
|
|
|
if ($product_radio > 0) {
|