Commit 7985c617 authored by houyadong's avatar houyadong

全民-排行榜bug修复

parent 3cddc7ea
......@@ -187,6 +187,7 @@ class UserModel extends Model
{
$gId = $gInfo['group_id'];
$is_xlq = $gInfo['category'] == 1 ? 1 : 0;
$is_qm = $gId == PRIZE_GROUP_2021 ? 1 : 0;
$getModel = function ($is_xlq,$gInfo){
if($is_xlq == 1){
return M()->db(1,C('DB_CONFIG_SYN'));
......@@ -220,7 +221,10 @@ class UserModel extends Model
'status'=>['in',['已报','已成']],
];
}
if($is_qm == 1 && $top_type == 1){
$uinfo_where['lastweekup'] = ['gt', 0];
$uinfo_where['monthzzl'] = ['gt', 0];
}
#置顶逻辑
if($top_type == 0){
$uinfo_where['new_phb'] = ['between',[1,3]];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment