微信公衆號{"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 );
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章