From 4887313fc9ee4f74382241f5f752440544c6095f Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Thu, 31 Mar 2022 15:21:33 +0800 Subject: [PATCH] setter --- app/controller/api/Coupon.php | 2 +- app/controller/api/User.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/api/Coupon.php b/app/controller/api/Coupon.php index 2cbbcad..edf0efc 100644 --- a/app/controller/api/Coupon.php +++ b/app/controller/api/Coupon.php @@ -939,7 +939,7 @@ class Coupon extends Base //如果到了时间 或者发布数量到达规定 更改商家模式 if( strtotime($account->business["time_limit_end"] ) < $time || - ($TimeListModeReleaseCount >= $account->business["time_limit_release_count"]) + (($TimeListModeReleaseCount + 1) >= $account->business["time_limit_release_count"]) ){ $businessModel = BusinessModel::model_ordinary; } diff --git a/app/controller/api/User.php b/app/controller/api/User.php index ce90ac8..da55d97 100644 --- a/app/controller/api/User.php +++ b/app/controller/api/User.php @@ -177,7 +177,7 @@ class User extends Base //如果到了时间 或者发布数量到达规定 更改商家模式 if( strtotime($account->business["time_limit_end"] ) < time() || - (($TimeListModeReleaseCount + 1) >= $account->business["time_limit_release_count"]) + ($TimeListModeReleaseCount >= $account->business["time_limit_release_count"]) ){ $businessModel = Business::model_ordinary; $account->business->save(["model"=> Business::model_ordinary]);