Commit 888e369a by Joneq

去除无效的注释

parent c65cd324
...@@ -79,7 +79,7 @@ class MessageApiController extends Controller ...@@ -79,7 +79,7 @@ class MessageApiController extends Controller
//保存系统更新信息 //保存系统更新信息
private function saveSystemUpdate($request) private function saveSystemUpdate($request)
{ {
$data = $request->only(['title','smbn_id','content']); $data = $request->all();
try{ try{
(new SystemNoticeLogic())->saveSystemUpdate($data); (new SystemNoticeLogic())->saveSystemUpdate($data);
$this->Export(0, '操作成功'); $this->Export(0, '操作成功');
......
...@@ -82,6 +82,8 @@ class SystemNoticeLogic ...@@ -82,6 +82,8 @@ class SystemNoticeLogic
$data['update_time'] = strtotime($data['update_time']); $data['update_time'] = strtotime($data['update_time']);
$data = self::setSystemInfo($data); $data = self::setSystemInfo($data);
unset($data['_url']);
$systemUpdateModel = (new SystemUpdateModel()); $systemUpdateModel = (new SystemUpdateModel());
$smueid = $data['smue_id'];unset($data['smue_id']); $smueid = $data['smue_id'];unset($data['smue_id']);
...@@ -102,6 +104,7 @@ class SystemNoticeLogic ...@@ -102,6 +104,7 @@ class SystemNoticeLogic
$time = time(); $time = time();
$data['preach_time'] = strtotime($data['preach_time']); $data['preach_time'] = strtotime($data['preach_time']);
unset($data['file']); unset($data['file']);
unset($data['_url']);
$data = self::setSystemInfo($data); $data = self::setSystemInfo($data);
$data = self::setDepartmentInfo($data); $data = self::setDepartmentInfo($data);
...@@ -124,6 +127,7 @@ class SystemNoticeLogic ...@@ -124,6 +127,7 @@ class SystemNoticeLogic
{ {
$time = time(); $time = time();
unset($data['file']); unset($data['file']);
unset($data['_url']);
$systemBulletinModel = (new SystemBulletinModel()); $systemBulletinModel = (new SystemBulletinModel());
$smbnid = $data['smbn_id'];unset($data['smbn_id']); $smbnid = $data['smbn_id'];unset($data['smbn_id']);
//id没有值是新增,id有值是保存 //id没有值是新增,id有值是保存
......
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