Commit 4301232c by gongyang

提交代码

parent 00395118
Showing with 3 additions and 0 deletions
......@@ -422,6 +422,7 @@ class SystemNoticeLogic
$time = time();
$field = ['info','type','show_status','system_id','title'];
$data = [];
$user = app('request')->user;
foreach ($field as $value){
if (isset($requestData[$value])){
$data[$value] = $requestData[$value];
......@@ -429,6 +430,8 @@ class SystemNoticeLogic
}
if (empty($id)){
$data['create_name'] = $user->name;
$data['create_id'] = $user->userId;
$data['create_time'] = $time;
$model->insertGetId($data);
}else{
......
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 sign in to comment