AttachmentPathHandle($params[$field]) : ''; } } return DataReturn('success', 0, $result); } /** * 附件展示地址处理 * @author Devil * @blog http://gong.gg/ * @version 1.0.0 * @datetime 2019-01-13T15:13:30+0800 * @param [type] $value [description] */ public function AttachmentPathViewHandle($value) { if(!empty($value)) { if(substr($value, 0, 4) != 'http') { return config('shopxo.attachment_host').$value; } return $value; } return ''; } } ?>