Commit 8a68a8ee authored by zhoujun's avatar zhoujun

调整日志类别

parent 636046f1
Pipeline #2180 passed with stage
in 0 seconds
......@@ -13,10 +13,12 @@ class SyceeLogModel extends BaseModel
const CREATE_ROLE = 1; // 创建角色
const WATCH_ADVERT = 2; // 观看广告
const WITHDRAWAL = 3; // 提现
const REBACK = 3; // 提现失败返还
public static $source = [
self::CREATE_ROLE => '创建角色',
self::WATCH_ADVERT => '观看广告',
self::WITHDRAWAL => '提现元宝',
self::REBACK => '提现失败返还',
];
}
......@@ -94,7 +94,7 @@ class AccountService implements IAccountService
$endTime = date('Y-m-d H:i:s',strtotime($end) + 86401);
return $query->where('log_time', '<',$endTime);
})->when($logType > 0, function ($query) use ($logType) {
if($logType == 1) return $query->whereIn('op_code',[1,2]);
if($logType == 1) return $query->whereIn('op_code',[1,2,4]);
if($logType == 2) return $query->where('op_code',3);
})->select('id','op_code','sycee','sycee_pool','sycee_balance','sycee_pool_balance','log_time','extra')->orderBy('id','DESC')->paginate($pagePerNum, ['*'], 'currentPage',$currentPage);
$array['totalNum'] = $logs->total();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment