Overview

Namespaces

  • Baidu
    • Duer
      • Botsdk
        • Card
        • Directive
          • AppLauncher
          • AudioPlayer
          • WebBrowser
        • Plugins

Classes

  • DuerSessionIntercept
  • Overview
  • Namespace
  • Class

Class DuerSessionIntercept

Baidu\Duer\Botsdk\Intercept
Extended by Baidu\Duer\Botsdk\Plugins\DuerSessionIntercept
Namespace: Baidu\Duer\Botsdk\Plugins
Located at Plugins/DuerSessionIntercept.php
Methods summary
public null
# __construct( string $tip = "非常抱歉,不明白你说的意思,已经取消了本次服务", integer $threshold = 2 )

Parameters

$tip
$threshold

Returns

null
public mixed
# preprocess( Bot $bot )

Parameters

$bot

Returns

mixed

Desc

在处理回调之前,bot-sdk会先调用preprocess, 如果preprocess返回不为null,终止事件路由,将preprocess的输出作为最终输出


Overrides

Baidu\Duer\Botsdk\Intercept::preprocess()
Methods inherited from Baidu\Duer\Botsdk\Intercept
postprocess()
API documentation generated by ApiGen