config.php 1.23 KB
<?php

return [

    'default' => [
        /*
         * 指定 API 调用返回结果的类型:collection(default)/array/object/raw/自定义类名
         */
        'response_type' => 'array',

        /*
         * 接口请求相关配置,超时时间等,具体可用参数请参考:
         * http://docs.guzzlephp.org/en/stable/request-config.html
         *
         * - retries: 重试次数,默认 1,指定当 http 请求失败时重试的次数。
         * - retry_delay: 重试延迟间隔(单位:ms),默认 500
         * - log_template: 指定 HTTP 日志模板,请参考:https://github.com/guzzle/guzzle/blob/master/src/MessageFormatter.php
         */
        'http'          => [
            'retries'     => 1,
            'retry_delay' => 500,
            'timeout'     => 10.0,
            'base_uri'    => 'https://transitsharedqaapim0.azure-api.cn',
            'debug'       => true,
            'http_errors' => false
        ],

        'apim' => [
            'api_key' => 'weconnect-3820',
            'secret' => 'QeJJJnjNdG5g',
            'uc' => [
                'subscription_key' => '5e44068303654121b93b66f6c1754426',
                'nonce_str' => '58x2aagn'
            ]
        ]
    ],
];