|
|
@@ -1481,7 +1481,7 @@ class StoreOrderRepository extends BaseRepository
|
|
|
@file_put_contents('quanju.txt', json_encode($v) . "-团队奖励等级信息\r\n", 8);
|
|
|
@file_put_contents('quanju.txt', $level_price . "-团队奖励等级奖励金额\r\n", 8);
|
|
|
foreach ($group_info as &$value) { //遍历上级统计总业绩
|
|
|
- if ($value[$field] >= $v['level']) { //判断是否达到该等级
|
|
|
+ if ($value[$field] >= $v['grade']) { //判断是否达到该等级
|
|
|
@file_put_contents('quanju.txt', $value[$field] . "-团队奖励用户等级\r\n", 8);
|
|
|
$GiftLevel = app()->make(GiftLevel::class);
|
|
|
$group_users = $GiftLevel->get_group_user($value['uid']); //获取上级的用户和总业绩
|