【调度系统】广东民航医疗快线调度系统源代码
wanglizhong
2025-06-16 ae5b0a8c63979351028215b8fe8cdf4b0766c272
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
header("Content-type: text/html; charset=utf-8");
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
$code = $_GET["code"];
$APPID = $_GET["APPID"];
$wx_url = "https://api.966120.com.cn/weixin/?method=weixin_Appid&APPID=".$APPID."&UnixTime=".time()."&Sign=vic";
$wxinfo=file_get_contents($wx_url);
    
$wxinfo=json_decode($wxinfo,true);
 
 
 
$appid = $wxinfo["wx_APPID"];
$APPSECRET = $wxinfo["wx_APPSECRET"];
$url = "https://api.weixin.qq.com/sns/jscode2session?appid=$appid&secret=$APPSECRET&js_code=$code&grant_type=authorization_code";
 
$info=file_get_contents($url);
// $info=json_decode($info,true);
 
/* $session_key = $info["session_key"];
$expires_in = $info["expires_in"];
$openid = $info["openid"]; */
 
echo $info;
 
 
 
?>