Browse Source

创建gem构造函数参数错误

cyzhao 1 năm trước cách đây
mục cha
commit
f8947bc116

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

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