bqrd-liugj/tongduncloud-php-sdk

同盾风控云php-client-sdk

v1.0 2018-12-14 05:38 UTC

README

同盾风控云php-sdk

==============

安装

通过 composer 安装:

composer require bqrd/tongduncloud-php-sdk

修改bootstrap/app.php 增加

$app->register(Bqrd\ITongDun\FengKongCloudServiceProvider::class);

配置

增加配置文件 config/tongdun.php


return [

    /*
    |--------------------------------------------------------------------------
    | api 地址
    |--------------------------------------------------------------------------
    */

    'api_url' => env('TONGDUN_API_URL'),

    /*
    |--------------------------------------------------------------------------
    | 合作方标识
    |--------------------------------------------------------------------------
    */

    'partner_code' => env('TONGDUN_PARTNER_CODE'),

    /*
    |--------------------------------------------------------------------------
    | 合作方密钥
    |--------------------------------------------------------------------------
    */

    'partner_key' => env('TONGDUN_PARTNER_KEY'),

    /*
    |--------------------------------------------------------------------------
    | 应用类型-H5
    |--------------------------------------------------------------------------
    */

    'H5' => [
        'secret_key' => env('TONGDUN_H5_SECRET_KEY'),
        'event' => [
            // 注册事件
            'Register' => [
                'event_id' => env('TONGDUN_H5_REGISTER_EVENT_ID'),
                'event_type' => 'Register',
            ],
        ]
    ],
];