【调度系统】广东民航医疗快线调度系统源代码
wanglizhong
2025-05-05 8a7dab004bc3eca7808d0cc196a329464402bbc9
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<% @LANGUAGE="VBSCRIPT" CODEPAGE="65001" %> 
<% Session.CodePage=65001 %> 
<% Response.charset = "utf-8" %>
<%
appid=request("appid")
sessionKey=request("sessionKey")
encryptedData=request("encryptedData")
iv=request("iv")
 
    url="https://api.966120.com.cn/weixin/encryptedData/index.php"  '//定义要获取源代码的网址,一般是通过变量传递过来
    Origin="appid="&appid
    Origin=Origin&"&sessionKey="&Server.URLEncode(sessionKey)
    Origin=Origin&"&encryptedData="&Server.URLEncode(encryptedData)
    Origin=Origin&"&iv="&Server.URLEncode(iv)
    'Response.Write url&"?"&Origin
    'Response.End 
    'Origin=Origin&"&Encrypt="&
    HTMLCODE= GetBody(url,Origin)
 
Response.Write HTMLCODE
 
'Get方法
Function GetBody(appUrl,Origin)
Set https = Server.CreateObject("Msxml2.ServerXMLHTTP") 
 
With https 
.Open "GET", appUrl&"?"&Origin, False
.setRequestHeader "Content-Type","application/x-www-form-urlencoded"
.Send ""
GetBody = .ResponseBody
End With 
GetBody = BytesToBstr(GetBody,"utf-8")
Set https = Nothing 
End Function
 
Function BytesToBstr(body,Cset) '飘易:转换GB2312
dim objstream
set objstream = Server.CreateObject("adodb.stream")
objstream.Type = 1
objstream.Mode =3
objstream.Open
objstream.Write body
objstream.Position = 0
objstream.Type = 2
objstream.Charset = Cset
BytesToBstr = objstream.ReadText 
objstream.Close
set objstream = nothing
End Function
%>