【调度系统】广东民航医疗快线调度系统源代码
wzp
2024-12-05 8a09f655eace34e9c90bbfc711eedb7a69e4e068
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
51
52
53
54
55
56
57
58
59
60
61
62
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Session.CodePage=65001%>  
<!--#include file="JsonPost_1000006.gds"-->
<!--#include virtual="/inc/function.gds"-->
<%
OAid            = trim(request("OAid"))
ID            = trim(request("ID"))
is_callid            = trim(request("is_callid"))
 
If OAid="" Or OAid="0" Then
    Response.Write "2"
    Response.End
End If
 
Set rs = Server.CreateObject("ADODB.Recordset")
isOA=""
touser=""
sql="select OA_User_ID,OA_weixinUserID,OA_Name from OA_User where OA_execLevel>-1 and OA_weixinStatus=1 and OA_User_ID in ("&OAid&")"
rs.open sql,objConn,1,1
do while not rs.Eof
    ToOA_UserID        = rs("OA_User_ID")
    ToOA_weixinUserID    = rs("OA_weixinUserID")
    ToOA_Name            = rs("OA_Name")
    touser            = touser&ToOA_weixinUserID&"|"
rs.movenext
loop
rs.close()
If touser="" Then
    Response.Write "4"
    Response.End
End If
touser=Mid(touser,1,Len(touser)-1)
'微信电话通知接口
If InStr(touser,"|")>0 Then touser=Replace(touser,"|",""",""")
appUrl="https://qyapi.weixin.qq.com/cgi-bin/pstncc/call?access_token="&access_token
args1="{"
    args1=args1&"""callee_userid"":["""&touser&"""]"
args1=args1&"}"
 
'Response.End
HTMLCODE= PostBody(appUrl,args1)
 
If Mid(HTMLCODE,12,1)<>"0" Then
    Call OA_Running("weixin_message_send|phone|"&touser&"|"&HTMLCODE)
    Response.Write "6"
    Response.End
ElseIf ID<>"" Then
    If InStr(HTMLCODE,"callid"":""")>0 Then
        HTMLCODE=Mid(HTMLCODE,InStr(HTMLCODE,"callid"":""")+9)
        callid=Mid(HTMLCODE,1,InStr(HTMLCODE,"""")-1)
    End If
    sql="update ServiceOrd_Message set Phone_is=1,Phone_callid='"&callid&"' where MID="&ID
    objConn.Execute sql
    Response.Write "1"
ElseIf is_callid="1" Then
    Response.Write appUrl&"<br>"&args1
    Response.Write "<br>"&HTMLCODE
Else
    Response.Write "1"
End If
 
%>