master
wangxinglong 2022-03-31 15:21:33 +08:00
parent eb1528aaa0
commit 4887313fc9
2 changed files with 2 additions and 2 deletions

View File

@ -939,7 +939,7 @@ class Coupon extends Base
//如果到了时间 或者发布数量到达规定 更改商家模式 //如果到了时间 或者发布数量到达规定 更改商家模式
if( strtotime($account->business["time_limit_end"] ) < $time 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; $businessModel = BusinessModel::model_ordinary;
} }

View File

@ -177,7 +177,7 @@ class User extends Base
//如果到了时间 或者发布数量到达规定 更改商家模式 //如果到了时间 或者发布数量到达规定 更改商家模式
if( strtotime($account->business["time_limit_end"] ) < time() 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; $businessModel = Business::model_ordinary;
$account->business->save(["model"=> Business::model_ordinary]); $account->business->save(["model"=> Business::model_ordinary]);