|
@@ -1017,8 +1017,7 @@ class StoreOrder extends BaseModel
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
-
|
|
|
|
|
- @file_put_contents('quanju.txt', json_encode($level_info) . "-等级信息\r\n", 8);
|
|
|
|
|
|
|
+// @file_put_contents('quanju.txt', json_encode($level_info) . "-等级信息\r\n", 8);
|
|
|
|
|
|
|
|
if ($parentLevel > $level_info['grade']) { //如果上上级等级小于上级,就直接跳过
|
|
if ($parentLevel > $level_info['grade']) { //如果上上级等级小于上级,就直接跳过
|
|
|
@file_put_contents('quanju.txt', "-如果上上级等级小于上级,就直接跳过\r\n", 8);
|
|
@file_put_contents('quanju.txt', "-如果上上级等级小于上级,就直接跳过\r\n", 8);
|
|
@@ -1034,7 +1033,7 @@ class StoreOrder extends BaseModel
|
|
|
$userPeerLevel = bcmul($userPeerLevel, 0.01, 2);
|
|
$userPeerLevel = bcmul($userPeerLevel, 0.01, 2);
|
|
|
$brokerage = bcmul($parentBrokerage, $userPeerLevel, 2);
|
|
$brokerage = bcmul($parentBrokerage, $userPeerLevel, 2);
|
|
|
}
|
|
}
|
|
|
- } elseif ($parentLevel < $parentLevel['grade']) { //如果上上级等级大于上级,就获取自己等级返利的佣金
|
|
|
|
|
|
|
+ } elseif ($parentLevel < $level_info['grade']) { //如果上上级等级大于上级,就获取自己等级返利的佣金
|
|
|
@file_put_contents('quanju.txt', "-如果上上级等级大于上级,就获取自己等级返利的佣金\r\n", 8);
|
|
@file_put_contents('quanju.txt', "-如果上上级等级大于上级,就获取自己等级返利的佣金\r\n", 8);
|
|
|
|
|
|
|
|
// StoreProductLevel::where('product_id',$)
|
|
// StoreProductLevel::where('product_id',$)
|