type = $type; $this->request = $request; } public function create() { $goods_data = $this->request->goods; $this->goods_model = $this->getGoodsModel(); if ($goods_data) { //正则匹配富文本更改图片标签 if ($goods_data['content']) { $goods_data['content'] = changeUmImgPath($goods_data['content']); } // 正则匹配富文本更改视频标签样式 //$goods_data['content'] = preg_replace(htmlspecialchars('/]*/'), htmlspecialchars('

]*/', $goods_data['content'], $matches); // $matches[0] .= ' x5-playsinline="true" webkit-playsinline="true" playsinline="true"'; // // $goods_data['content'] = preg_replace('/]*/', $matches[0], $goods_data['content']); $video_matche= '

]*/', $goods_data['content'], $matches); // $matches[0] .= ' x5-playsinline="true" webkit-playsinline="true" playsinline="true"'; // // $goods_data['content'] = preg_replace('/]*/', $matches[0], $goods_data['content']); $video_matche= '