1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- # 数据收集的配置
- $config['accessToken'] = array
- (
- 'url' => 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential',
-
- /*
- 1 => array
- (
- 'appid' => 'wx1bd1c3bfc6b0515e',
- 'secret' => '21f8ebe7b419a4920eb9b72532798523'
- ),
- # 牛游
- 2 => array
- (
- 'appid' => 'wx4978eeb711847a5a',
- 'secret' => '510645c52d352d915773999f3a3cf5c1'
- ),
- */
- );
- $config['accessToken'] += Dever::load('weixin/site-getAll');
- //print_r($config['accessToken']);die;
- # 得到当前的site
- if(!Dever::input('site'))
- {
- $top = Dever::load('manage/auth.getTop', 'site');
- if($top)
- {
- Dever::setInput('site', $top['value']);
- }
- }
- $config['ticket'] = 'https://api.weixin.qq.com/cgi-bin/ticket/getticket?type=jsapi&access_token=';
- return $config;
|