微信公众号{"errcode":41002,"errmsg":"appid missing"}

微信公众号{

Array ( [appid] => wx4e1a7d31cef2c476 )
{“appid”:“wx4e1a7d31cef2c476”}

那为什么post提交还是没有传值给到微信服务器了,竟然原因是没有json加密再传过去。

$account_api = WeAccount::create();
$token = $account_api->getAccessToken();
$url = "https://api.weixin.qq.com/cgi-bin/clear_quota?access_token={$token}";
load()->func('communication');


$data = array(
    'appid' =>$_W['oauth_account']['key']
);
$data = json_encode( $data );

你可能感兴趣的:(php)