feat : basic
This commit is contained in:
@@ -10,7 +10,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Service\Admin\System;
|
||||
|
||||
use App\Exception\AdminException;
|
||||
use App\Exception\ErrException;
|
||||
use App\Model\Config;
|
||||
use App\Service\Admin\BaseService;
|
||||
use Hyperf\Di\Annotation\Inject;
|
||||
@@ -42,7 +42,7 @@ class ConfigService extends BaseService
|
||||
|
||||
$res = (new Config)->where('key', $editKey)->update(['value' => $editValue]);
|
||||
|
||||
if (!$res) throw new AdminException('配置更新失败');
|
||||
if (!$res) throw new ErrException('配置更新失败');
|
||||
|
||||
return $this->return->success();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user