cyzhao 2 тижнів тому
батько
коміт
b3e6d6a24b
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      Gameserver/App/process/PetProc.php

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

@@ -66,7 +66,7 @@ class PetProc {
                 $ins_pet = new Ins_Pet(ctx()->store->$petUid);
                 $typeId = $ins_pet->mo()->type;
                 $qual = $ins_pet->qual;
-
+                
                 $pet_exploreoutputMo = GameConfig::pet_exploreoutput_getItem($typeId, $qual);
                 if ($pet_exploreoutputMo->exploreOutput != null) {
                     $sList = explode(';', $pet_exploreoutputMo->exploreOutput);
@@ -826,7 +826,7 @@ class PetProc {
         if(count($uids) == 0){
             ctx()->store()->mainShowPetList = $uids;
         } else {
-            my_Assert(count($uids)< GameConfig::glc2()->Pet_MainShowPetList , ErrCode::user_store_ShowPetNumLimit);
+            my_Assert(count($uids)<= GameConfig::glc2()->Pet_MainShowPetList , ErrCode::user_store_ShowPetNumLimit);
             
             foreach ($uids as $uid) {
                 my_Assert(StlUtil::dictHasProperty($petDic, $uid), ErrCode::user_store_NotExistPet);