diff --git a/app/statistics/controller/IndexController.php b/app/statistics/controller/IndexController.php index e04ae905..e229fabd 100644 --- a/app/statistics/controller/IndexController.php +++ b/app/statistics/controller/IndexController.php @@ -131,11 +131,13 @@ class IndexController extends BaseLikeController $where['recharge_type'] = 'INDUSTRYMEMBERS'; $where['status'] = 1; $where['paid'] = 1; + $where[] = ['price','>',1]; // $res = OrderLogic::Count($where,$time); // if (ProductLogic::hasError()) { // return $this->fail(ProductLogic::getError()); //获取错误信息并返回错误信息 // } - $res = Db::connect('demo')->name('user_recharge')->where($where)->limit(20)->select()->each(function ($item) { + + $res = Db::connect('demo')->name('user_recharge')->where($where)->limit(20)->order('id desc')->select()->each(function ($item) { if ($item['uid']) { $find = Db::connect('demo')->name('user')->where('id', $item['uid'])->field('real_name,nickname')->find(); $item['nickname']=$find['real_name']??'';