|
@@ -20,7 +20,7 @@ use think\Hook;
|
|
|
*/
|
|
|
class Common extends Api
|
|
|
{
|
|
|
- protected $noNeedLogin = ['init', 'captcha','getQRcode','expireCertificate','getHelpConfig','getBeian'];
|
|
|
+ protected $noNeedLogin = ['init', 'captcha','getQRcode','expireCertificate','getHelpConfig','getBeian','getBottomText'];
|
|
|
protected $noNeedRight = '*';
|
|
|
|
|
|
public function _initialize()
|
|
@@ -196,6 +196,21 @@ class Common extends Api
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 获取logo、联系电话、客服邮箱、工作时间、二维码
|
|
|
+ * @param $id
|
|
|
+ * @return \think\Response
|
|
|
+ */
|
|
|
+ public function getBottomText(){
|
|
|
+
|
|
|
+ $list = Db::name('config')->where('name','in','logo,phone,email,workdate,qrcode')->field('name','value')->select();
|
|
|
+// $arr = [
|
|
|
+// 'help' => $list['help'],
|
|
|
+// 'about_us' => $list['about_us'],
|
|
|
+// ];
|
|
|
+ $this->success('操作成功',$list);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 体验卡自动过期
|
|
|
* @param $id
|
|
|
* @return \think\Response
|