Explorar el Código

创建gem构造函数参数错误

cyzhao hace 1 año
padre
commit
f8947bc116
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      Gameserver/App/model/User/Ins_Gem.php

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

@@ -49,7 +49,9 @@ class Ins_Gem extends Object_ext {
      * @param type $args
      */
     public function __construct($args) {
-        parent::__construct($args);
+        if($args !=null){
+            parent::__construct($args);
+        }                
     }
     
     /**