用curl post提交的
部分代码:
$host = 'https://mp.weixin.qq.com';
$arr = array(
"f" => "json",
"username" => $_POST['code_username'],
"pwd" => md5($_POST['code_password']),
);
//验证码
if($_POST['imgcode']){
$arr['imgcode'] = $_POST['imgcode'];
}
//https://mp.weixin.qq.com/cgi-bin/login?lang=zh_CN
$quest_urlp = http_build_query($arr);