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, ) );