|
|
@@ -14,6 +14,7 @@ use app\models\system\SystemStore;
|
|
|
use app\models\system\SystemStoreStaff;
|
|
|
use app\models\user\User;
|
|
|
use app\models\user\UserBill;
|
|
|
+use app\models\user\UserNotice;
|
|
|
use app\models\user\WechatUser;
|
|
|
use app\Request;
|
|
|
use crmeb\services\CacheService;
|
|
|
@@ -67,13 +68,18 @@ class PublicController
|
|
|
$likeInfo = StoreProduct::getHotProduct('id,image,store_name,cate_id,price,ot_price,unit_name', 3);//TODO 热门榜单 猜你喜欢
|
|
|
$couponList = StoreCouponIssue::getIssueCouponList($request->uid(), 3);
|
|
|
if ($request->uid()) {
|
|
|
+ $notice = UserNotice::getNotice($request->uid());
|
|
|
$subscribe = WechatUser::where('uid', $request->uid())->value('subscribe') ? true : false;
|
|
|
} else {
|
|
|
+ $notice = 0;
|
|
|
$subscribe = true;
|
|
|
}
|
|
|
$newGoodsBananr = sys_config('new_goods_bananr');
|
|
|
$tengxun_map_key = sys_config('tengxun_map_key');
|
|
|
- return app('json')->successful(compact('filing_info','banner', 'menus', 'roll', 'info', 'activity', 'lovely', 'benefit', 'likeInfo', 'logoUrl', 'couponList', 'site_name', 'subscribe', 'newGoodsBananr', 'tengxun_map_key', 'explosive_money'));
|
|
|
+ return app('json')->successful(compact('filing_info','banner', 'menus',
|
|
|
+ 'roll', 'info', 'activity', 'lovely', 'benefit', 'likeInfo', 'logoUrl',
|
|
|
+ 'couponList', 'site_name', 'subscribe', 'newGoodsBananr', 'tengxun_map_key',
|
|
|
+ 'explosive_money', 'notice'));
|
|
|
}
|
|
|
|
|
|
/**
|