feat(IndexController): 限制用户充值查询结果数量为20条
This commit is contained in:
parent
e8d1cbb7cd
commit
cbfdbe7b81
@ -135,7 +135,7 @@ class IndexController extends BaseLikeController
|
||||
// if (ProductLogic::hasError()) {
|
||||
// return $this->fail(ProductLogic::getError()); //获取错误信息并返回错误信息
|
||||
// }
|
||||
$res = Db::connect('demo')->name('user_recharge')->where($where)->select()->each(function ($item) {
|
||||
$res = Db::connect('demo')->name('user_recharge')->where($where)->limit(20)->select()->each(function ($item) {
|
||||
if ($item['uid']) {
|
||||
$item['nickname'] = User::where('id', $item['uid'])->value('nickname');
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user