命令行
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user