Quellcode durchsuchen

每日bug修复

cyzhao vor 1 Jahr
Ursprung
Commit
5a782bff78
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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;