|
|
@@ -72,7 +72,9 @@ class AccountService extends BaseService
|
|
|
$query = AccountLogModel::with(['member'])->from('account_logs as a')
|
|
|
->leftJoin('member as b', 'b.id', '=', 'a.user_id')
|
|
|
->where('a.mark', 1)
|
|
|
- ->where('b.mark', 1);
|
|
|
+ ->where(function($query){
|
|
|
+ $query->where('b.mark', 1)->orWhere('a.user_id',0);
|
|
|
+ });
|
|
|
|
|
|
// 状态筛选
|
|
|
if ($status !== '' && $status != 0) {
|