<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
use Hyperf\Contract\StdoutLoggerInterface;
use Psr\Log\LogLevel;

return [
    'app_name' => env('APP_NAME', 'gdxz'),
    'app_env' => env('APP_ENV', 'dev'),
    'scan_cacheable' => env('SCAN_CACHEABLE', false),
    StdoutLoggerInterface::class => [
        'log_level' => [
            LogLevel::ALERT,
            LogLevel::CRITICAL,
            LogLevel::EMERGENCY,
            LogLevel::ERROR,
            LogLevel::INFO,
            LogLevel::NOTICE,
            LogLevel::WARNING,
        ],
    ],
    'jwt' => [
        "secret" => env('JWT_SECRET', ''),// 密钥
        "ttl" => env('JWT_TTL', '3600 * 24 * 70'),// 过期时间
        'algo' => env('JWT_ALGO', 'HS256'),
    ],
    "we_chat" => [ // 微信配置
        "applets" =>[ // 小程序
            "doctor" => [
                "app_id"  => env('DOCTOR_WECHAT_APP_ID', 'wxc83296720404aa7b'),
                "secret"  => env('DOCTOR_WECHAT_APP_SECRET', '817665d3763637fe66d56548f8484622'),
            ],
            "patient" => [
                "app_id"  => env('PATIENT_WECHAT_APP_ID', 'wx70a196902e0841b6'),
                "secret"  => env('PATIENT_WECHAT_APP_SECRET', '2671d2f4285180ddec5a5a2b16ed50f2'),
                "inquiry_pay_notify_url"  => env('PATIENT_WECHAT_INQUIRY_PAY_NOTIFY_URL', 'callback/wxpay/inquiry/success'),
                "inquiry_refund_notify_url"  => env('PATIENT_WECHAT_INQUIRY_REFUND_NOTIFY_URL', 'callback/wxpay/inquiry/refund'),
                "product_pay_notify_url"  => env('PATIENT_WECHAT_PRODUCT_PAY_NOTIFY_URL', 'callback/wxpay/product/success'),
                "product_refund_notify_url"  => env('PATIENT_WECHAT_PRODUCT_REFUND_NOTIFY_URL', 'callback/wxpay/product/refund'),
            ],
            "pharmacist" => [
                "app_id"  => env('DOCTOR_WECHAT_APP_ID', 'wxc83296720404aa7b'),
                "secret"  => env('DOCTOR_WECHAT_APP_SECRET', '817665d3763637fe66d56548f8484622'),
            ],
            "pay" => [
                "mch_id"  => env('PATIENT_WECHAT_MCH_ID', '1636644248'),
                "v3_api_secret"  => env('PATIENT_WECHAT_APIv3_SECRET', 'gdxz292sjSOadN3m2pCda03NfCsmNadY'),
            ]
        ],
    ],
    "alibaba" => [// 阿里
        "dysms" => [// 阿里云大鱼短信
            "accessKey" => "LTAI4GGygjsKhyBwvvC3CghV",
            "accessKeySecret" => "rcx7lO9kQxG10m8NqNPEfEtT9IS8EI",
        ],
        "oss" => [// 阿里云对象存储
            "accessKey" => "LTAI5tKmFrVCghcxX7yHyGhm",
            "accessKeySecret" => "q1aiIZCJJuf92YbKk2cSXnPES4zx26",
            "bucket" => "gdxz-hospital",
            "endpoint" => "oss-cn-chengdu.aliyuncs.com",
            "custom_domain_name" => "https://img.applets.igandanyiyuan.com",
        ],
    ],
    'verify_dun' =>[ // 网易易盾
        "secretId" => "0bcf9a5633eb9ca9d196583e67c3762b",
        "secretKey" => "b31e8220d115b6531a22ee71d1e89936",
        "busunessId" => "",
    ],
    'im' =>[ // 腾讯im
        "app_id" => "1400796919",
        "secret" => "a5bcd8c583181cf004e9d91a47687d719d4b5d2a10ce33fbee95d587889447d8",
        "base_url" => "https://console.tim.qq.com/",
        "token" => "NDc5MzExMDMxMDY2NDMxNDg5L", // 鉴权回调使用
    ],
    'ca' => [ // ca
        "app_id" => env('CA_APP_ID', 'SCCA1560150113940832258'),
        "secret" => env('CA_APP_SECRET', 'facded39929f4aef9893cb766cd52e25'),
        "api_url" => env('CA_APP_URL', 'http://testmicrosrv.scca.com.cn:9527'),
    ],
    'prescription_platform' => [ // 处方平台
        "client_id" => env('PRE_PLAT_CLIENT_ID', 'ZD-004'),
        "client_secret" => env('PRE_PLAT_CLIENT_SECRET', '0baa5927164710b9f800bf33546b6da3'),
        "api_url" => env('PRE_PLAT_APP_URL', 'http://49.233.3.200:6304/api/thridapi/'),
    ],
];
