Переглянути джерело

创建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);
+        }                
     }
     
     /**