$data = Db::name($model)->field("seotitle,seokeywords,seodescription")->where($map)->find();$this->assign("seo1", $data);}public function getshare($type , $model = "", $id = ""){if($type == 100){$map['id'] = $id;$data = Db::name($model)->field("title,intro")->where($map)->find();$data['cover_img'] = 'http://www.bgechina.cn/uploads/error/404.jpg';$data['intro'] = $data['intro'];}else if($type == 200){$map['id'] = $id;$data = Db::name($model)->field("title,intro,cover_img")->where($map)->find();if (strlen($data['cover_img']) < 6) {$url = '[{"id":"125","url":"/uploads/error/404.jpg","filetype":"1","filetitle":"2.png","filejump":"","fileintro":""}]';$url = json_decode($url, true);$data['cover_img'] = "http://www.bgechina.cn".$url[0]['url'];} else {$url = json_decode($data['cover_img'], true);