pithyone / wechat

最最最简单易用的企业微信SDK
https://pithyone.github.io/wechat/
MIT License
102 stars 37 forks source link

我并不清楚在哪里获取配置中的信息 #9

Closed iexe closed 5 years ago

iexe commented 6 years ago

$app = new \WeWork\App( [ ///企业ID 'corp_id' => 'xxxxxxxxxxxxxxxxxx', //下面的secret是在哪里获取 'secret' => 'fsAQmTHCGvd5ZsRJnkr9jj9aCR2sqOKypAUw6D****',

    'agent_id' => 0,
 //下面的token是在哪里获取 
    'token'    => 'cxvhat5gfJW30J9****,
 //下面的aes_key是在哪里获取 
    'aes_key'  => 'ULPUgqKDC8LTI1fRJ1jOxHrwbUV2QxR5jnSKrlh****',
    'cache'    => [
        'path' => __DIR__.'/cache',
    ],
    'log'      => [
        'file'  => __DIR__.'/log/app.log',
        'level' => 'debug',
    ],
]

);

tyonly commented 5 years ago

企业微信后台应用里面

pithyone commented 5 years ago

参考官方文档

https://work.weixin.qq.com/api/doc#90000/90135/90665 https://work.weixin.qq.com/api/doc#90000/90135/90930