|
@@ -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带回">
|