Update Center.php

This commit is contained in:
Anyon 2020-11-06 09:59:40 +08:00
parent 7de72813c1
commit 9abcc35750

View File

@ -38,7 +38,7 @@ class Center extends Auth
foreach ($data as $key => $vo) {
if ($vo === '') unset($data[$key]);
}
if (empty($data)) $this->error('没有需要修改的数据!');
if (empty($data)) $this->error('没有修改的数据!');
if ($this->app->db->name($this->table)->where(['id' => $this->mid])->update($data) !== false) {
$this->success('更新资料成功!', $this->getMember());
} else {