【调度系统】广东民航医疗快线调度系统源代码
wanglizhong
2025-06-24 a51d070d364b0da8e5f8ea9203a6e50c8b4c0af3
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
29
30
31
32
33
34
<?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/v3/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 = "b6cc232a38ae5a2a24c841141419c4ad";
$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;
$msg = array(
        "unionid"=>$info["unionid"],
        "openid"=>$info["openid"],
        "errcode"=>$info["errcode"]
    );
echo json_encode($msg,JSON_UNESCAPED_UNICODE);
 
 
 
 
?>