摘要: 代码如下: //code值,从前端获取 $code = $_GET['code']; //注册时获取 $appid="xxxxxxxxxxxxx"; $secret = "xxxxxxxxxxxxxxxxxxxxx"; $get_code_url = 'https://api.weixin.qq.c 阅读全文
posted @ 2020-07-28 11:25 不叫一日闲过 阅读(789) 评论(0) 推荐(0) 编辑
摘要: <?php //获取数据 $name = $_GET['name']; $servername = "localhost"; //服务器名 $username = "aaa"; //用户名 $password = "aaa"; //用户密码 $dbname = "bbb"; //数据库名 // 创建 阅读全文
posted @ 2020-07-28 11:13 不叫一日闲过 阅读(3209) 评论(0) 推荐(0) 编辑
摘要: get方式获取数据 $code = $_GET['code']; post方式获取数据 //获取POST数据 $getData = file_get_contents("php://input"); //解析数据 $json = json_decode($getData ); //提取json对象中 阅读全文
posted @ 2020-07-28 10:33 不叫一日闲过 阅读(262) 评论(0) 推荐(0) 编辑