feat : basic

This commit is contained in:
2024-11-12 11:02:38 +08:00
parent 235acbea9c
commit a9f81888b7
26 changed files with 342 additions and 209 deletions

View File

@@ -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();
}