迅睿系统基于MIT开源许可协议发布,不限制商业使用,以多端互联为设计理念, 支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
业务经理
微信扫描以上二维码
028-61286886
技术咨询
火车头采集入库时,采集了多图片字段怎么入库呢?需要改入库接口吗?多图字段Files,字段名是duotu
http://www.xxx.com/1.jpg|http://www.xxx.com/2.jpg|http://www.xxx.com/3.jpg
duotu
智能设置采集模块,支持蓝天采集器,火车头采集器,方便快捷的数据采集接口,火车头采集接口
if ($save[1]['duotu']){ $more_images = explode("|",$save[1]['duotu']); $mi_file = []; $mi_title = []; $mi_description = []; foreach ($more_images as $mi) { //echo $mi.'<br>'; // 下载远程文件 $rt = \Phpcmf\Service::L('upload')->down_file([ 'url' => $mi, 'attachment' => \Phpcmf\Service::M('Attachment')->get_attach_info(intval($field['duotu']['setting']['option']['attachment'])), ]); if ($rt['code']) { $att = \Phpcmf\Service::M('Attachment')->save_data($rt['data'], 'ueditor_down_img'); if ($att['code']) { // 归档成功 $mi_file[] = $att['code']; $mi_title[] = ''; $mi_description[] = ''; } } // 下载远程文件 } $arr = array( 'file'=> $mi_file, 'title'=> $mi_title, 'description'=> $mi_description ); $save[1]['duotu'] = json_encode($arr); }
迅睿系统漏洞
数据采集接口
智能设置采集模块,支持蓝天采集器,火车头采集器,方便快捷的数据采集接口,火车头采集接口
if ($save[1]['duotu']){ $more_images = explode("|",$save[1]['duotu']); $mi_file = []; $mi_title = []; $mi_description = []; foreach ($more_images as $mi) { //echo $mi.'<br>'; // 下载远程文件 $rt = \Phpcmf\Service::L('upload')->down_file([ 'url' => $mi, 'attachment' => \Phpcmf\Service::M('Attachment')->get_attach_info(intval($field['duotu']['setting']['option']['attachment'])), ]); if ($rt['code']) { $att = \Phpcmf\Service::M('Attachment')->save_data($rt['data'], 'ueditor_down_img'); if ($att['code']) { // 归档成功 $mi_file[] = $att['code']; $mi_title[] = ''; $mi_description[] = ''; } } // 下载远程文件 } $arr = array( 'file'=> $mi_file, 'title'=> $mi_title, 'description'=> $mi_description ); $save[1]['duotu'] = json_encode($arr); }