コード例 #1
0
 protected function discrevent($event)
 {
     $event = strtr(strtolower($event), $this->event_alias);
     //TODO 此处 若腾讯新出接口  可以增加数组新元素
     // if(file_exists(APP_PATH.'Common/Factory/'.ucfirst($event).'Factory.class.php')){
     // }
     $factory_event = array_merge(Reply::getResponseType(), $this->event_safe);
     if (in_array($event, $factory_event)) {
         return $event;
     } else {
         Reply::trace('Sorry,暂无此类相关的处理Bundle');
     }
 }