From 06be1c7ccc7533612e4cc7b0e730080d0dd3d2a1 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Fri, 16 Jan 2026 11:43:36 +0800
Subject: [PATCH] 商品可以赠送优惠券 商品属性增加团购 入驻商家增加实物和团购选项 团购和实物商户分类分开 增加团购商家页面 后台添加页面增加团购组件
---
admin/app/common/model/plus/bonus/User.php | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/admin/app/common/model/plus/bonus/User.php b/admin/app/common/model/plus/bonus/User.php
index ea015db..0075882 100644
--- a/admin/app/common/model/plus/bonus/User.php
+++ b/admin/app/common/model/plus/bonus/User.php
@@ -308,7 +308,10 @@
$is_expire = User::isExpire($user_id);
// 队长详情
$model = static::detail($user_id);
- if (!$model || $model['is_delete']) {
+ if (!$model) {
+ return false;
+ }
+ if ($model['is_delete']){
return false;
}
if ($money_type == 20){
@@ -451,6 +454,9 @@
public static function isExpire($user_id)
{
$team = self::detail($user_id);
+ if (!$team) {
+ return false;
+ }
$setting = Setting::getItem('basic', $team['app_id']);
return !!$team && $team['is_expire'] && $team['is_permanent'] == 0 && $setting['expire_day'] > 0;
}
--
Gitblit v1.9.2