浏览代码

创建gem构造函数参数错误

cyzhao 1 年之前
父节点
当前提交
f8947bc116
共有 1 个文件被更改,包括 3 次插入1 次删除
  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);
+        }                
     }
     
     /**