|
@@ -81,7 +81,7 @@ class ShopProc {
|
|
|
my_Assert($mo != null, ErrCode::err_const_no);
|
|
|
|
|
|
my_Assert(in_array($typeId, $user->privateState->dailyShopRandItems), ErrCode::err_const_no);
|
|
|
- if($typeId == 1001){
|
|
|
+ if($typeId == 10001){
|
|
|
$getNum = 0;
|
|
|
foreach ($user->privateState->dailyShopReceived as $id) {
|
|
|
if($id == $typeId){
|
|
@@ -89,7 +89,7 @@ class ShopProc {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if($getNum >= $mo->num){
|
|
|
+ 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);
|
|
|
$user->privateState->dailyShop_GuangGaoNum += 1;
|