setter
parent
0ee306619d
commit
2129f18947
|
@ -393,7 +393,7 @@ class Business extends Base
|
||||||
$data["usingRule"] = DictionaryRepository::getInstance()->getUsingRuleByCouponMainId($couponMain->id);
|
$data["usingRule"] = DictionaryRepository::getInstance()->getUsingRuleByCouponMainId($couponMain->id);
|
||||||
$data["punishRule"] = '';//处罚规则 已取消
|
$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, '<img src="' . $this->request->domain() . '${1}" style="max-width:100%">', (string)$couponMain->content );
|
$data["content"] = preg_replace($pregRule, '<img src="' . $this->request->domain() . '${1}" style="max-width:100%">', (string)$couponMain->content );
|
||||||
// $data["content"] = (string)$couponMain->content;
|
// $data["content"] = (string)$couponMain->content;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue