|
|
|
@ -403,7 +403,7 @@ class PlatformController extends ThinkController
|
|
|
|
|
count(IF(register_time ' . $mounth . ',1,null)) as mounth')
|
|
|
|
|
->join("tab_promote AS tp2 ON tp2.`chain` LIKE CONCAT('%/', tp1.id, '/%') OR tp2.id = tp1.id", 'left')
|
|
|
|
|
->join("tab_user as u on tp2.id = u.promote_id", 'left')
|
|
|
|
|
// ->join($play_info_map ? "tab_user_play_info as upi on upi.user_id = u.id " . $play_info_map : false)
|
|
|
|
|
->join($play_info_map ? "tab_user_play_info as upi on upi.user_id = u.id " . $play_info_map : false)
|
|
|
|
|
->where($map)
|
|
|
|
|
->group('tp1.id')
|
|
|
|
|
->order('count desc, register_time')
|
|
|
|
|