cyzhao 1 年之前
父節點
當前提交
02aee8706f
共有 1 個文件被更改,包括 2 次插入2 次删除
  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) {
         foreach ($dic as $typeId => $mo) {
             $type = $mo->type;
             $type = $mo->type;
-            if(StlUtil::dictHasProperty($dataDic,$mo->type) ){
+            if(StlUtil::dictHasProperty($dataDic,$type) ){
                 $list = $dataDic->$type;
                 $list = $dataDic->$type;
                 $list[] = $typeId;
                 $list[] = $typeId;
                 $dataDic->$type = $list;
                 $dataDic->$type = $list;
@@ -356,7 +356,7 @@ class ShopProc {
                 $result[] = $arr2[$num];
                 $result[] = $arr2[$num];
                 unset($arr2[$num]);
                 unset($arr2[$num]);
                 
                 
-                $dataDic->$k = $arr2;                
+                $dataDic->$k = array_values($arr2);             
             }
             }
         }
         }