|
|
@@ -70,7 +70,13 @@ class BalanceLogService extends BaseService
|
|
|
unset($where['coin_type']);
|
|
|
}
|
|
|
|
|
|
- $data = $this->model->where($where)->where(function ($query)use($status){
|
|
|
+ $data = $this->model->where($where)->where(function ($query)use($status,$coinType){
|
|
|
+ if($coinType){
|
|
|
+ $query->where('coin_type', $coinType);
|
|
|
+ }else{
|
|
|
+ $query->whereIn('coin_type', [1,2]);
|
|
|
+ }
|
|
|
+
|
|
|
if($status){
|
|
|
$query->where('status', $status);
|
|
|
}else{
|