|
|
@@ -14,6 +14,7 @@ namespace app\services\user;
|
|
|
|
|
|
use app\services\BaseServices;
|
|
|
use app\dao\user\UserWechatUserDao;
|
|
|
+use think\facade\Log;
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
@@ -56,6 +57,11 @@ class UserWechatuserServices extends BaseServices
|
|
|
if (isset($where['now_money']) && in_array($where['now_money'], $order_arr)) {
|
|
|
$order_string = $where['now_money'] == 'ascending' ? 'now_money asc' : 'now_money desc';
|
|
|
}
|
|
|
+ if (isset($where['score_sort']) && $where['score_sort']) {
|
|
|
+ $order_string = ' integral desc ';
|
|
|
+ }
|
|
|
+ Log::error(1222211);
|
|
|
+ Log::error($order_string);
|
|
|
$list = $this->dao->getListByModel($where, $field, $order_string, $page, $limit);
|
|
|
$count = $this->dao->getCountByWhere($where);
|
|
|
return [$list, $count];
|