setter
parent
622bd8cdc8
commit
4177615026
|
@ -393,7 +393,9 @@ class Business extends Base
|
||||||
$data["usingRule"] = DictionaryRepository::getInstance()->getUsingRuleByCouponMainId($couponMain->id);
|
$data["usingRule"] = DictionaryRepository::getInstance()->getUsingRuleByCouponMainId($couponMain->id);
|
||||||
$data["punishRule"] = '';//处罚规则 已取消
|
$data["punishRule"] = '';//处罚规则 已取消
|
||||||
|
|
||||||
$data["content"] = (string)$couponMain->content;
|
$pregRule = "/<[img|IMG].*?src=[\'|\"](.*?(?:[\.jpg|\.jpeg|\.png|\.gif|\.bmp]))[\'|\"].*?[\/]?>/";
|
||||||
|
$data["content"] = preg_replace($pregRule, '<img src="' . $this->request->domain() . '${1}" style="max-width:100%">', $data["content"] );
|
||||||
|
// $data["content"] = (string)$couponMain->content;
|
||||||
|
|
||||||
//未登录可以领取 0可领取 1已领取 2 已领完
|
//未登录可以领取 0可领取 1已领取 2 已领完
|
||||||
if (empty($account)) {
|
if (empty($account)) {
|
||||||
|
|
Loading…
Reference in New Issue