|
@@ -91,7 +91,9 @@ class ShopProc {
|
|
|
|
|
|
if($getNum >= $mo->freeNum){
|
|
|
my_Assert($user->privateState->dailyShop_GuangGaoNum < $mo->num, ErrCode::user_shop_FreeNumLimit);
|
|
|
- my_Assert(now() - $user->privateState->dailyShop_GuangGaoTs >= $mo->downTs, ErrCode::user_shop_FreeNumLimit);
|
|
|
+ if($user->privateState->dailyShop_GuangGaoNum >= 1){
|
|
|
+ my_Assert(now() - $user->privateState->dailyShop_GuangGaoTs >= $mo->downTs, ErrCode::user_shop_FreeNumLimit);
|
|
|
+ }
|
|
|
$user->privateState->dailyShop_GuangGaoNum += 1;
|
|
|
$user->privateState->dailyShop_GuangGaoTs = now();
|
|
|
}
|