Commit c9bee5eb authored by houyadong's avatar houyadong

成员交易逻辑修改-bug

parent f3900e18
...@@ -270,6 +270,7 @@ class UserModel extends Model ...@@ -270,6 +270,7 @@ class UserModel extends Model
$entrust_where['userid'] = ['in',array_keys($top_uid)]; $entrust_where['userid'] = ['in',array_keys($top_uid)];
} }
#取委托总条数和页数 #取委托总条数和页数
$model = $getModel($is_xlq,$gInfo);
$today_count = $model->table($table_name)->where($entrust_where)->cache(true,3600)->count(); $today_count = $model->table($table_name)->where($entrust_where)->cache(true,3600)->count();
$his_count = $today_count + $model->table($his_table_name)->where($entrust_where)->cache(true,3600)->count(); $his_count = $today_count + $model->table($his_table_name)->where($entrust_where)->cache(true,3600)->count();
$today_max_page = ceil($today_count / $pageSize); $today_max_page = ceil($today_count / $pageSize);
......
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