<?php


return [
    //微信公众号
    'wechat' => [
        'app_id' => 'wx674823c8b5a3db64',
        'secret' => '213ebb7b47040fa962b6cd5e317b9170',
        // 用户扫码地址
        'forward_code_url' => 'http://esm.kingdone.com/forward?auk={auk}&state={state}',
        // callback 地址
        'forward_callback_url' => 'http://esm.kingdone.com/callback',
        // 转发获取微信公众号用户信息
        'forward_user_url' => 'http://esm.kingdone.com/wechatuser',
        'forward_auk' => 'lwl',
        'open_forward' => true, // 是否开启微信公众号授权转发地址
        // webH5代理
        'h5Proxy' => [
            'forward_auk' => '',
            'open_forward' => false, // 是否开启微信公众号授权转发地址
            // 静默授权地址
            'forward_code_url' => 'http://esm.kingdone.com/webH5Forward?auk={auk}',
            // callback 地址
            'forward_callback_url' => 'http://esm.kingdone.com/webH5Callback',
        ]
    ],
    //受试者H5公众号
    'patient_H5' => [
        'default' => [
            'name' => '开元科技Aigenius',
            'app_id' => 'wx6b3fdf24638e6885',
            'secret' => '24a6996d9539ac861d30f13ed35d5ac5',
            'client_id' => 'wx6b3fdf24638e6885',
            'client_secret' => '24a6996d9539ac861d30f13ed35d5ac5',
            'open_forward' => true,    //是否使用微信公众号转发地址
            'forward_code_url' => 'https://www.e-yda.cn/application/wechatadv/forwardcode?auk={auk}',   //code转发地址
            'forward_openid_url' => 'https://www.e-yda.cn/application/wechatadv/forwardopenid?code={code}', //获取openid,access_token信息转发地址
            'forward_userinfo_url' => 'https://www.e-yda.cn/application/wechatadv/forwarduserinfo?access_token={access_token}&openid={openid}', //获取用户基本信息转发地址
            'forward_auk' => '',
        ],
    ],
    //微信小程序
    'applets' => [
        'scitrials' => [
            'app_id' => 'wxf5c075c9ef6fe12a',
            'secret' => 'eee78a727275ce716bcb411b41d0cb9c'
        ],
        'eyda' => [
            'app_id' => 'wxf5c075c9ef6fe12a',
            'secret' => 'eee78a727275ce716bcb411b41d0cb9c'
        ],
    ],
    // 企业微信
    'work' => [
        'app' => [
            'corp_id' => '',
            'secret' => '',
            'agent' => []
        ],
        'departmentIdPrefix' => [
            'item' => 'sdm-item-',
            'itemsig' => 'sdm-itemsig-'
        ],
        'userIdPrefix' => 'sdm-user-',
        'sigroleCode' => 'yjys',
        'defaultUser' => 'llbjj89',
    ],
    //微信公众号授权转发地址
    'wechatRedirectUrlConfig' => [
    ],
    //微信公众号H5授权转发地址
    'wechatH5RedirectUrlConfig' => [
    ]
];
