setter
parent
eb1528aaa0
commit
4887313fc9
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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]);
|
||||||
|
|
Loading…
Reference in New Issue