Commit 12187a61 authored by zhoujun's avatar zhoujun

预警接口

parent f4756c71
Pipeline #2074 passed with stage
in 0 seconds
......@@ -8,5 +8,5 @@ class WarnConfigModel extends BaseModel
{
use SoftDeletes;
protected $connection = 'mysql';
protected $table = 'club_warn_log';
protected $table = 'club_warn_config';
}
......@@ -333,7 +333,7 @@ class WarnService implements IWarnService
$pagePerNum = $postData['pageSize'] ?? 20;
$currentPage = $postData['page'] ?? 1;
$lists = WarnConfigModel::when($id > 0, function ($query) use ($id) {
$lists = WarnLogModel::when($id > 0, function ($query) use ($id) {
return $query->where('id',$id);
})->when($platform > 0, function ($query) use ($platform) {
return $query->where('platform',$platform);
......
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