You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

32 lines
1002 B

  1. <%@ language=vbscript codepage="65001" %>
  2. <!--#include file="conn.asp"-->
  3. <!--#include file="function.asp"-->
  4. <%
  5. Response.Charset = "UTF-8"
  6. c_orderno = deal_num_beforesql(request("orderno"))
  7. csql = "update app_order_main set if_payed=1,payed_time=getdate() where main_id=" & c_orderno
  8. conn.execute(csql)
  9. 'm_url = "http://partner.zhizhuchuxing.com/json?user=tmall01&sign=7620D8B54A4218E2EE1FFABFB40867C5&op=eticket&tradeno=" & c_orderno
  10. m_url = "http://partner.zhizhuchuxing.com/json?user=shnswx01&sign=5AE42D0AD35EEEF45B79C7A533CC509D&op=eticket&tradeno=" & c_orderno
  11. Set objXML = CreateObject("Microsoft.XMLHTTP")
  12. objXML.open "GET",m_url,false
  13. objXML.send
  14. c_rtn = objXML.responseText
  15. Set objXML = nothing
  16. cstr1 = c_rtn
  17. nnum1 = instr(cstr1,"""code"":""0"",")
  18. if nnum1 -0 > 0 then
  19. csql = "update app_order_main set order_status= 2 where main_id=" & c_orderno
  20. conn.execute(csql)
  21. 'response.write "Ö§¸¶³É¹¦£¡"
  22. response.write "true"
  23. else
  24. response.write "false"
  25. end if
  26. %>