cyzhao 1 year ago
parent
commit
02aee8706f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Gameserver/App/process/ShopProc.php

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

@@ -337,7 +337,7 @@ class ShopProc {
               
         foreach ($dic as $typeId => $mo) {
             $type = $mo->type;
-            if(StlUtil::dictHasProperty($dataDic,$mo->type) ){
+            if(StlUtil::dictHasProperty($dataDic,$type) ){
                 $list = $dataDic->$type;
                 $list[] = $typeId;
                 $dataDic->$type = $list;
@@ -356,7 +356,7 @@ class ShopProc {
                 $result[] = $arr2[$num];
                 unset($arr2[$num]);
                 
-                $dataDic->$k = $arr2;                
+                $dataDic->$k = array_values($arr2);             
             }
         }