Ver código fonte

创建gem构造函数参数错误

cyzhao 1 ano atrás
pai
commit
f8947bc116
1 arquivos alterados com 3 adições e 1 exclusões
  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);
+        }                
     }
     
     /**