Explorar o código

宝石镶嵌bug修复

cyzhao hai 1 ano
pai
achega
def1488dd9

+ 1 - 1
Gameserver/App/model/User/Ins_Gem.php

@@ -13,7 +13,7 @@ namespace loyalsoft;
  *
  * @author c'y'zhao
  */
-class Ins_Gem {
+class Ins_Gem extends Object_ext {
     /**
      * 索引id
      * @var type

+ 2 - 1
Gameserver/App/process/StoreProc.php

@@ -369,7 +369,8 @@ class StoreProc {
         
         $tag_index = 0;
         $tag_gem = null;
-        foreach ($dic as $index => $gem) {
+        foreach ($dic as $index => &$gem) {
+            $gem = new Ins_Gem($gem);
             if($gem->predicateMo()->uniqueKey == $ins_gem->predicateMo()->uniqueKey){                    
                 $tag_index = $index;
                 $tag_gem = $gem;