<?php
return [
    'app_name' => PROJECT_NAME,
    'app_path' => PROJECT_PATH,
    // redis
    'queue'  => [
        'class'    => 'Jobs\Model\Queue\MRedisTopicQueue',
        'host'     => '127.0.0.1',
        'port'     => '6379',
        'password' => '',
        'database' =>'' ,
        ],
     'swooleServer'=>[
        'order'=>[
            "host"=>"127.0.0.1",
            "port"=>"9503",
            "ssl"=>true,
            //没有访问权限,需要放在这个位置
             'ssl_cert_file' => '/www/server/panel/vhost/cert/api.junhailan.com/fullchain.pem',
             'ssl_key_file' => '/www/server/panel/vhost/cert/api.junhailan.com/privkey.pem',
//            'ssl_cert_file' => '/www/wwwroot/api.junhailan.com/swoole_server/cert/api.junhailan.com/fullchain.pem',
//            'ssl_key_file' => '/www/wwwroot/api.junhailan.com/swoole_server/cert/api.junhailan.com/privkey.pem',
            
            
        ],
    ],
    'db' => [
        'default' => [
            'driver' => 'mysql',
            'host' => '127.0.0.1',
            'port' => '3306',
            'username' => 'seablue_devanfei',
            'password' => 'tkKYEfnKEtChiDp5',
            'dbname' => 'seablue_devanfei',
            'prefix' => 'qianniao',
            'pconnect' => 0,
            'charset' => 'utf8',
        ],
        'stock' => [
            'driver' => 'mysql',
            'host' => '127.0.0.1',
            'port' => '3306',
            'username' => 'seablue_devanfei',
            'password' => 'tkKYEfnKEtChiDp5',
            'dbname' => 'seablue_devstock',
            'prefix' => 'qianniao',
            'pconnect' => 0,
            'charset' => 'utf8',
        ],
        'price'   => [
            'driver' => 'mysql',
            'host' => '127.0.0.1',
            'port' => '3306',
            'username' => 'seablue_devanfei',
            'password' => 'tkKYEfnKEtChiDp5',
            'dbname' => 'seablue_devprice',
            'prefix' => 'qianniao',
            'pconnect' => 0,
            'charset' => 'utf8',
        ],
        'log' => [
            'driver' => 'mysql',
            'host' => '127.0.0.1',
            'port' => '3306',
            'username' => 'seablue_devanfei',
            'password' => 'tkKYEfnKEtChiDp5',
            'dbname' => 'seablue_devlog',
            'prefix' => 'qianniao',
            'pconnect' => 0,
            'charset' => 'utf8',
        ],
        'finance' => [
            'driver' => 'mysql',
            'host' => '127.0.0.1',
            'port' => '3306',
            'username' => 'seablue_devanfei',
            'password' => 'tkKYEfnKEtChiDp5',
            'dbname' => 'seablue_devfinan',
            'prefix' => 'qianniao',
            'pconnect' => 0,
            'charset' => 'utf8',
        ],
    ],

    'cache' => [
        'default' => [
            'storage' => 'redis',
            'host' => '127.0.0.1',
            'port' => '6379',
            'auth' => '',
            'prefix' => '',
            'database' => '0',
        ],
        'mapping' => [
            'storage' => 'redis',
            'host' => '127.0.0.1',
            'port' => '6379',
            'auth' => '',
            'prefix' => '',
            'database' => '1',//用于缓存地区
        ],
        'user' => [
            'storage' => 'redis',
            'host' => '127.0.0.1',
            'port' => '6379',
            'auth' => '',
            'prefix' => '',
            'database' => '2',
        ],
        'finance'    => [
            'storage'  => 'redis',
            'host'     => '127.0.0.1',
            'port'     => '6379',
            'auth'     => '',
            'prefix'   => '',
            'database' => '3',
        ],
        'activity'  => [
            'storage'  => 'redis',
            'host'     => '127.0.0.1',
            'port'     => '6379',
            'auth'     => '',
            'prefix'   => '',
            'database' => '5',
        ],//活动
    ],

    'dataResources' => [
        'stock' => [
            'host' => '0.0.0.0',
            'port' => '9503'
        ]
    ],

    'search' => [
        'goods_search' =>[
            'protocol' => 'http',
            'servers' => [
                '124.71.11.196:80'
            ],
            'timeout' => null,
            'index' => 'dev_goods_search',
            'type' => 'goods',
        ],
        'customer_search' =>[
            'protocol' => 'http',
            'servers' => [
                '124.71.11.196:80'
            ],
            'timeout' => null,
            'index' => 'dev_customer_search',
            'type' => 'customer',
        ],
        'goods_basic_search' =>[
            'protocol' => 'http',
            'servers' => [
                '124.71.11.196:80'
            ],
            'timeout' => null,
            'index' => 'dev_goods_basic_search',
            'type' => 'goodsBasic',
        ],
        'order_search' =>[
            'protocol' => 'http',
            'servers' => [
                '124.71.11.196:80'
            ],
            'timeout' => null,
            'index' => 'dev_order_search',
            'type' => 'order',
        ],
        'shop_search' =>[
            'protocol' => 'http',
            'servers' => [
                '124.71.11.196:80'
            ],
            'timeout' => null,
            'index' => 'dev_shop_search',
            'type' => 'shop',
        ],
        'login_log' =>[
            'protocol' => 'http',
            'servers' => [
                '124.71.11.196:80'
            ],
            'timeout' => null,
            'index' => 'dev_login_log',
            'type' => 'login',
        ],
        'logs'                                => [
            'protocol' => 'http',
            'servers'  => [
                '124.71.11.196:80'
            ],
            'timeout'  => null,
            'index'    => 'dev_logs',
            'type'     => 'logs',
        ],
        'inventory_in_search' => [
            'protocol' => 'http',
            'servers' => [
                '124.71.11.196:80'
            ],
            'timeout' => null,
            'index' => 'dev_inventory_in_search',
            'type' => 'inventory_in',
        ],
        'priceAdjustmentSheet_search' => [
            'protocol' => 'http',
            'servers'  => [
                '124.71.11.196:80'
            ],
            'timeout'  => null,
            'index'    => 'dev_price_adjustment_sheet_search',
            'type'     => 'priceAdjustmentSheet',
        ],
        'customerPriceAdjustmentSheet_search' => [
            'protocol' => 'http',
            'servers'  => [
                '124.71.11.196:80'
            ],
            'timeout'  => null,
            'index'    => 'dev_customer_price_adjustment_sheet_search',
            'type'     => 'customerPriceAdjustmentSheet',
        ],
        'inventory_out_search' => [
            'protocol' => 'http',
            'servers' => [
                '124.71.11.196:80'
            ],
            'timeout' => null,
            'index' => 'dev_inventory_out_search',
            'type' => 'inventory_out',
        ],
        'allocate_search' => [
            'protocol' => 'http',
            'servers' => [
                '124.71.11.196:80'
            ],
            'timeout' => null,
            'index' => 'dev_allocate_search',
            'type' => 'allocate',
        ],
        'stocktaking_search' => [
            'protocol' => 'http',
            'servers' => [
                '124.71.11.196:80'
            ],
            'timeout' => null,
            'index' => 'dev_stocktaking_search',
            'type' => 'stocktaking',
        ],
        'inventory_details_search' => [
            'protocol' => 'http',
            'servers' => [
                '124.71.11.196:80'
            ],
            'timeout' => null,
            'index' => 'dev_inventory_details_search',
            'type' => 'inventory_details',
        ],
        'order_out_search' => [
            'protocol' => 'http',
            'servers' => [
                '124.71.11.196:80'
            ],
            'timeout' => null,
            'index' => 'dev_order_out_search',
            'type' => 'order_out',
        ],
        'purchase_details_search' => [
            'protocol' => 'http',
            'servers' => [
                '124.71.11.196:80'
            ],
            'timeout' => null,
            'index' => 'dev_purchase_details_search',
            'type' => 'purchase_details',
        ],
        'coupon_search' => [
            'protocol' => 'http',
            'servers'  => [
                '124.71.11.196:80'
            ],
            'timeout'  => null,
            'index'    => 'dev_coupon_search',
            'type'     => 'coupon',
        ],
        'user_coupon_search' => [
            'protocol' => 'http',
            'servers'  => [
                '124.71.11.196:80'
            ],
            'timeout'  => null,
            'index'    => 'dev_user_coupon_search',
            'type'     => 'user_coupon',
        ],
        'activity_search' => [
            'protocol' => 'http',
            'servers'  => [
                '124.71.11.196:80'
            ],
            'timeout'  => null,
            'index'    => 'dev_activity_search',
            'type'     => 'activity',
        ],
        'should_receive_receipt_search'                  => [
            'protocol' => 'http',
            'servers'  => [
                '124.71.11.196:80'
            ],
            'timeout'  => null,
            'index'    => 'dev_should_receive_receipt_search',
            'type'     => 'should_receive_receipt',
        ],
        'should_pay_receipt_search'                  => [
            'protocol' => 'http',
            'servers'  => [
                '124.71.11.196:80'
            ],
            'timeout'  => null,
            'index'    => 'dev_should_pay_receipt_search',
            'type'     => 'should_pay_receipt',
        ],
        'received_receipt_search'                  => [
            'protocol' => 'http',
            'servers'  => [
                '124.71.11.196:80'
            ],
            'timeout'  => null,
            'index'    => 'dev_received_receipt_search',
            'type'     => 'received_receipt',
        ],
        'paid_receipt_search'                  => [
            'protocol' => 'http',
            'servers'  => [
                '124.71.11.196:80'
            ],
            'timeout'  => null,
            'index'    => 'dev_paid_receipt_search',
            'type'     => 'paid_receipt',
        ],
        'inventory_batch_search'                  => [
            'protocol' => 'http',
            'servers'  => [
                '124.71.11.196:80'
            ],
            'timeout'  => null,
            'index'    => 'dev_inventory_batch_search',
            'type'     => 'inventory_batch',
        ],

    ],

    'weixin' => [
        'app'         => [
            'appid' => '',
        ],
        'miniprogram' => [
            'appid'     => '',
            'appSecret' => '',
        ],
        'offiaccount' => [
            'appid'     => '',
            'appSecret' => '',
        ],
        'oplatform'   => [ // 开放平台
            'appid'          => '',
            'appSecret'      => '',
            'token'          => '',
            'encodingAesKey' => '',
        ],
        'pay'         => [
            'mch_id'        => '',
            'apiPartnerKey' => ''
        ],
         'service_pay' => [
            'mch_id' => '', 
            'apiPartnerKey' => ''
        ] 
    ],

    'sms' => [
        'registerCodeKey' => '',
        'SmsSdkAppid' => '',
    ],

    'outsideSystem' => [
        'wms' => '',
        'oms' => ''
    ],
    'keruyun' => [
        'appKey' => '',
        'shopIdenty' => '',
        'version' => '1.0',
        'secretKey' => '',
    ],
    'kuaidi100'     => [
        'customer' => '',
        'key'      => ''
    ],
    'qiniu' => [
        'accessKey' => 'BLlI0KPOS-oW4XApVaP72x-LOiKbqyC6qhRoEp3p',
        'secretKey' => 'juhP3Z2-4ikUS2OifOsv9B9IHnLS24s_TGsg-vPD'
    ]
];
