|
@@ -20,7 +20,7 @@ use think\Hook;
|
|
|
*/
|
|
|
class Common extends Api
|
|
|
{
|
|
|
- protected $noNeedLogin = ['init', 'captcha','getQRcode','expireCertificate','getHelpConfig','getBeian','getBottomText'];
|
|
|
+ protected $noNeedLogin = ['init', 'captcha','getQRcode','expireCertificate','getHelpConfig','getBeian','getBottomText','getName'];
|
|
|
protected $noNeedRight = '*';
|
|
|
|
|
|
public function _initialize()
|
|
@@ -211,6 +211,20 @@ class Common extends Api
|
|
|
}
|
|
|
|
|
|
|
|
|
+ * 获取网站名称
|
|
|
+ * @param $id
|
|
|
+ * @return \think\Response
|
|
|
+ */
|
|
|
+ public function getName(){
|
|
|
+ $list = Db::name('config')->where('name','in','name')->field('name','value')->select();
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ $this->success('操作成功',$list);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
* 体验卡自动过期
|
|
|
* @param $id
|
|
|
* @return \think\Response
|