diff --git a/app/controller/api/Business.php b/app/controller/api/Business.php index 8869c59..cfe05cf 100644 --- a/app/controller/api/Business.php +++ b/app/controller/api/Business.php @@ -393,7 +393,7 @@ class Business extends Base $data["usingRule"] = DictionaryRepository::getInstance()->getUsingRuleByCouponMainId($couponMain->id); $data["punishRule"] = '';//处罚规则 已取消 - $pregRule = "/<[img|IMG].*?src=[\'|\"](.*?(?:[\.jpg|\.jpeg|\.png|\.gif|\.bmp]))[\'|\"].*?[\/]?>/"; + $pregRule = "/<[img|IMG].*?src=[\'|\"]/(.*?(?:[\.jpg|\.jpeg|\.png|\.gif|\.bmp]))[\'|\"].*?[\/]?>/"; $data["content"] = preg_replace($pregRule, '', (string)$couponMain->content ); // $data["content"] = (string)$couponMain->content;