where($where)->find(); return $this->returnJson($data); } //获取导航栏的相对于的文字内容 public function getWord() { $nav_id = Request::param('nav_id'); $where['nav_id'] = $nav_id; $res = Db::name('web_word')->where($where)->find(); $result = json_decode($res['content'],true); return $this->returnJson($result); } //导航栏列表 public function navList() { $where['web_id'] = Request::param('web_id',1); $data = Db::name('web_nav')->where($where)->order(['sort'=>'desc','nav_id'=>'asc'])->select()->toArray(); return $this->returnJson($data); } //获取招商信息 public function getBusInfo() { $res = Db::name('bus')->where(['id'=>1])->find(); if($res['content']) { $res['content'] = json_decode($res['content'],true); } else { $res['content'] = []; } return $this->returnJson($res); } /** * 公众号分享获取签名信息 * Author wangfeng * DateTime 2021/07/02 16:00 * @return \think\Response */ public function wxPackage() { include_once dirname(dirname(dirname(__DIR__))).'/extend/wxjs_sdk/jssdk.php'; $wx_sdk = new \JSSDK('wx46df32c2ccfc177d','cde9bf412f5a0e524c143241daf9a383'); $result = $wx_sdk->getSignPackage(); return $this->returnJson($result); } }