王刚 1 年之前
父節點
當前提交
eabeabfe46
共有 1 個文件被更改,包括 15 次插入15 次删除
  1. 15 15
      Gameserver/App/base/Resp.php

+ 15 - 15
Gameserver/App/base/Resp.php

@@ -36,14 +36,14 @@ class Resp extends Object_ext {
      * 事件列表
      * @var array/list
      */
-    public $events = array();
+//    public $events = array();
 
     /**
      * 标签[扩展用,保留]
      * @var object
      * @deprecated since version 0 弃用
      */
-    public $tag;
+//    public $tag;
 
     /**
      * 附加错误信息, err!=0时赋值
@@ -98,19 +98,19 @@ class Resp extends Object_ext {
     public function AfterProc() {
 //        $this->tag = arr2obj(array_merge((array) $this->tag, (array) self::$ext_tag)); # 合并附加tags
 //        self::$ext_tag = ObjectInit();
-        $this->events = self::$ext_events;                                      # 合并附加events
-        self::$ext_events = array();
-        if (count($this->events) > 0) {                                         # 对于出现event的情况下自动附带store到客户端.
-            if (is_array($this->result)) {
-                if (!array_key_exists('store', (array) $this->result)) {
-                    //$this->result['store'] = ctx()->store;
-                }
-            } else {
-                if (!array_key_exists('store', (array) $this->result)) {
-                    //$this->result->store = ctx()->store;
-                }
-            }
-        }
+//        $this->events = self::$ext_events;                                      # 合并附加events
+//        self::$ext_events = array();
+//        if (count($this->events) > 0) {                                         # 对于出现event的情况下自动附带store到客户端.
+//            if (is_array($this->result)) {
+//                if (!array_key_exists('store', (array) $this->result)) {
+//                    //$this->result['store'] = ctx()->store;
+//                }
+//            } else {
+//                if (!array_key_exists('store', (array) $this->result)) {
+//                    //$this->result->store = ctx()->store;
+//                }
+//            }
+//        }
     }
 
     // <editor-fold defaultstate="collapsed" desc="附加event带回">