BFWSOA框架service的访问限制

BFWSOA框架service的访问限制有两种方式,一种是队列,一种是锁

在app目录的config.php中我们进行了配置

$_config_arr['Globle'] = [
    "routetype" => 0, //路由模式
    "instance_name" => "001", //实例名称
    "lang" => "Zh",
    "page_suffix" => ".html", //后缀
    "defaultdom" => "",
    "defaultact" => "",
    "defaultcont" => "",
    "runmode" => "C", //运行模式
    "service" => [
        "WxAdm_Order_Down" => [
            "type" => "queue", //队列访问
            "para" => 0, //将第一个参数作为key
            "limit" => 3 //针对key的访问只能有三次
        ],
        "WxAdm1_Power_GetPowerDeta...

点击查看剩余70%

{{collectdata}}

网友评论0