From 0ee306619daa8ed266beebc67d3f42ace83aa63c Mon Sep 17 00:00:00 2001
From: wangxinglong <2371974647@qq.com>
Date: Fri, 13 May 2022 10:14:39 +0800
Subject: [PATCH] setter
---
app/controller/api/Business.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/controller/api/Business.php b/app/controller/api/Business.php
index d54ba2e..8869c59 100644
--- a/app/controller/api/Business.php
+++ b/app/controller/api/Business.php
@@ -394,7 +394,7 @@ class Business extends Base
$data["punishRule"] = '';//处罚规则 已取消
$pregRule = "/<[img|IMG].*?src=[\'|\"](.*?(?:[\.jpg|\.jpeg|\.png|\.gif|\.bmp]))[\'|\"].*?[\/]?>/";
- $data["content"] = preg_replace($pregRule, '', $data["content"] );
+ $data["content"] = preg_replace($pregRule, '', (string)$couponMain->content );
// $data["content"] = (string)$couponMain->content;
//未登录可以领取 0可领取 1已领取 2 已领完