From 844c6c42b562d636d14fd42cd3cabe6809c66dd2 Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Thu, 23 Dec 2021 15:53:43 +0800 Subject: [PATCH] settter --- app/controller/api/Business.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controller/api/Business.php b/app/controller/api/Business.php index 9f064ac..c864b28 100644 --- a/app/controller/api/Business.php +++ b/app/controller/api/Business.php @@ -376,13 +376,15 @@ class Business extends Base $data["id"] = $couponMain->id; $data["imageUrl"] = $this->request->domain(). $couponMain->image_url; $data["intro"] = $couponMain->intro;//简介 - $data["content"] = $couponMain->content; + $data["lat"] = $couponMain->lat; $data["lng"] = $couponMain->lng; $data["money"] = $couponMain->money; $data["usingRule"] = DictionaryRepository::getInstance()->getUsingRuleByCouponMainId($couponMain->id); $data["punishRule"] = '';//处罚规则 已取消 + $data["content"] = $couponMain->content; + //未登录可以领取 0可领取 1已领取 if (empty($account)) { $data["receiveStatus"] = CouponMain::COMMON_OFF;//领取状态