12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- # 数据收集的配置
- return array
- (
- # 生成维码ticket
- 'code_ticket' => array
- (
- 'url' => 'https://api.weixin.qq.com/cgi-bin/qrcode/create?',
- 'param' => array
- (
- 'access_token' => 'token',
- 'expire_seconds' => 604800,
- 'action_name' => Dever::input('action_name'),
- 'action_info' => array
- (
- 'scene' => array
- (
- 'scene_id' => Dever::input('scene_id'),
- )
- ),
- ),
-
- 'json' => true,
- ),
-
- # 生成二维码 这里不用了
- 'code_create' => array
- (
- 'url' => 'https://mp.weixin.qq.com/cgi-bin/showqrcode?',
- 'param' => array
- (
- 'ticket' => urlencode(Dever::input('ticket')),
- ),
-
- 'json' => true,
- ),
-
- # 生成短链接
- 'code_link' => array
- (
- 'url' => 'https://api.weixin.qq.com/cgi-bin/shorturl?',
- 'param' => array
- (
- 'access_token' => 'token',
- 'action' => 'long2short',
- 'long_url' => Dever::input('url'),
- ),
-
- 'json' => true,
- )
- );
|