Explorar o código

每日bug修复

cyzhao hai 1 ano
pai
achega
5a782bff78
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Gameserver/App/process/ShopProc.php

+ 2 - 2
Gameserver/App/process/ShopProc.php

@@ -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;