命令行

This commit is contained in:
2025-08-15 10:28:58 +08:00
parent ca0bf11b55
commit d1bbbab7c3
5 changed files with 18 additions and 17 deletions

View File

@@ -15,7 +15,7 @@ use app\common\library\Auth as UserAuth;
class CommonController extends Frontend
{
protected array $noNeedLogin = ['getAppUseKv', 'getAppUseKv'];
protected array $noNeedLogin = ['getAppUseKv', 'type'];
/**
* 图形验证码
* @throws Throwable
@@ -98,7 +98,7 @@ class CommonController extends Frontend
public function type()
{
$type = $this->request->route('num');
$type = $this->request->route->param('num');
$data = convertToCamelCase(Db::connect(config('think-orm.search_library'))->name('common_info')->where('type', $type)->find());
$this->success('ok', $data, 0);
}