YS:充值记录显示

es
yangsai@163.com 8 months ago
parent 263627500f
commit 117c078af7
  1. 4
      app/api/model/user/BalanceLog.php

@ -44,8 +44,12 @@ class BalanceLog extends BalanceLogModel
// 获取列表数据
$query = $this->where('user_id', '=', $userId);
if (!empty($params['type'])) {
if($params['type']==10){
$query = $query->whereIn('scene', [10,30]);
}else{
$query = $query->where('scene', '=', $params['type']);
}
}
if (!empty($params['start_at']) && !empty($params['end_at'])) {
$query = $query->where('create_time', '>=', strtotime($params['start_at']));
$query = $query->where('create_time', '<=', strtotime($params['end_at']));

Loading…
Cancel
Save