소스 검색

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