feat(IndexController): 修改用户充值查询逻辑,移除时间条件
This commit is contained in:
parent
fdece3e6e0
commit
9811e47f7e
@ -135,7 +135,7 @@ class IndexController extends BaseLikeController
|
|||||||
// if (ProductLogic::hasError()) {
|
// if (ProductLogic::hasError()) {
|
||||||
// return $this->fail(ProductLogic::getError()); //获取错误信息并返回错误信息
|
// return $this->fail(ProductLogic::getError()); //获取错误信息并返回错误信息
|
||||||
// }
|
// }
|
||||||
$res = Db::connect('demo')->name('user_recharge')->where($where)->whereTime('create_time', $time)->select()->each(function ($item) {
|
$res = Db::connect('demo')->name('user_recharge')->where($where)->select()->each(function ($item) {
|
||||||
if ($item['uid']) {
|
if ($item['uid']) {
|
||||||
$item['nickname'] = User::where('id', $item['uid'])->value('nickname');
|
$item['nickname'] = User::where('id', $item['uid'])->value('nickname');
|
||||||
} else {
|
} else {
|
||||||
@ -151,7 +151,7 @@ class IndexController extends BaseLikeController
|
|||||||
{
|
{
|
||||||
$time = $this->request->get('date');
|
$time = $this->request->get('date');
|
||||||
$store_id = $this->request->get('store_id', 0);
|
$store_id = $this->request->get('store_id', 0);
|
||||||
$where = ['paid','=',1];
|
$where['paid'] = 1;
|
||||||
if ($store_id) {
|
if ($store_id) {
|
||||||
$where['store_id'] = $store_id;
|
$where['store_id'] = $store_id;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user