src/App/Weixin/ConfigInit.php

Functions

weixin_wxtable()

weixin_wxtable(  $name) 

Parameters

$name

weixin_get_access_token()

weixin_get_access_token(  $data = array()) 

Parameters

$data

ihttp_request()

ihttp_request(  $url,   $post = '',   $extra = array(),   $timeout = 60) 

Parameters

$url
$post
$extra
$timeout

ihttp_response_parse()

ihttp_response_parse(  $data,   $chunked = false) 

Parameters

$data
$chunked

strexists()

strexists(  $string,   $find) 

Parameters

$string
$find

weixin_GetOpenidFromMp()

weixin_GetOpenidFromMp(string  $code) : \openid

通过code从工作平台获取openid机器access_token

Parameters

string $code

微信跳转回来带上的code

Returns

\openid

weixin_CreateOauthUrlForCode()

weixin_CreateOauthUrlForCode(string  $redirectUrl) : \返回构造好的url

构造获取code的url连接

Parameters

string $redirectUrl

微信服务器回跳的url,需要url编码

Returns

\返回构造好的url

weixin_CreateOauthUrlForOpenid()

weixin_CreateOauthUrlForOpenid(  $code) : \请求的url

构造获取open和access_toke的url地址

Parameters

$code

Returns

\请求的url

weixin_ToUrlParams()

weixin_ToUrlParams(array  $urlObj) : \返回已经拼接好的字符串

拼接签名字符串

Parameters

array $urlObj

Returns

\返回已经拼接好的字符串