作者 王晓刚
1 个管道 的构建 通过 耗费 0 秒

视频详情

... ... @@ -31,6 +31,7 @@ class Goods extends WechatBase
}
public function detail(){
$domain_name = $this->request->domain();//域名
$goods_id = $this->request->param('goods_id',0,'intval');
if(empty($goods_id)){
$this->error('404');
... ... @@ -38,6 +39,9 @@ class Goods extends WechatBase
$where['id'] = ['eq',$goods_id];
$goodsModel = new \app\home\model\Goods();
$data = $goodsModel->findData($where);
if(!empty($data['video'])){
$data['video'] = $domain_name.$data['video'];
}
if(empty($data)){
$this->error('404');
}
... ...