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.
 
 
 
 
 

50 lines
2.3 KiB

  1. <%@ language=vbscript codepage="65001" %>
  2. <!--#include file="conn.asp"-->
  3. <!--#include file="function.asp"-->
  4. <%
  5. Response.Charset = "UTF-8"
  6. c_orderid = deal_num_beforesql(request("orderno"))
  7. csql="SP_GET_ORDER_DETAIL " & c_orderid
  8. set rs=conn.execute(csql)
  9. c_rtn = "{"
  10. if not rs.eof then
  11. c_errcode = rs("errcode")
  12. if c_errcode -0 = 0 then
  13. c_rtn = c_rtn & """code"":""0""," & vbcrlf
  14. c_rtn = c_rtn & """info"":""""," & vbcrlf
  15. c_rtn = c_rtn & """order_no"":""" & rs("main_id") & """," & vbcrlf
  16. c_rtn = c_rtn & """order_time"":""" & rs("order_time") & """," & vbcrlf
  17. c_rtn = c_rtn & """order_status"":""" & rs("order_status") & """," & vbcrlf
  18. c_rtn = c_rtn & """prod_code"":""" & rs("prod_code") & """," & vbcrlf
  19. c_rtn = c_rtn & """prod_name"":""" & rs("prod_name") & """," & vbcrlf
  20. c_rtn = c_rtn & """price"":""" & rs("price") & """," & vbcrlf
  21. c_rtn = c_rtn & """start_area"":""" & rs("start_area") & """," & vbcrlf
  22. c_rtn = c_rtn & """end_area"":""" & rs("end_area") & """," & vbcrlf
  23. c_rtn = c_rtn & """go_info"":""" & rs("go_info") & """," & vbcrlf
  24. c_rtn = c_rtn & """back_info"":""" & rs("back_info") & """," & vbcrlf
  25. c_rtn = c_rtn & """direction"":""" & rs("direction") & """," & vbcrlf
  26. c_rtn = c_rtn & """run_days"":""" & rs("run_days") & """," & vbcrlf
  27. c_rtn = c_rtn & """need_pay"":""" & rs("need_pay") & """," & vbcrlf
  28. c_rtn = c_rtn & """pay_second"":""" & rs("pay_second") & """," & vbcrlf
  29. c_rtn = c_rtn & """if_bus"":""" & rs("if_bus") & """," & vbcrlf
  30. c_rtn = c_rtn & """if_hotel"":""" & rs("if_hotel") & """," & vbcrlf
  31. c_rtn = c_rtn & """if_sightspot"":""" & rs("if_sightspot") & """," & vbcrlf
  32. c_rtn = c_rtn & """direction"":""" & rs("direction") & """," & vbcrlf
  33. c_rtn = c_rtn & """customer_name"":""" & rs("customer_name") & """," & vbcrlf
  34. c_rtn = c_rtn & """customer_mobile"":""" & rs("customer_mobile") & """," & vbcrlf
  35. c_rtn = c_rtn & """customer_id"":""" & rs("customer_idno") & """," & vbcrlf
  36. c_rtn = c_rtn & """get_ticket"":[" & rs("TICKET_INFO_1") & "]," & vbcrlf
  37. c_rtn = c_rtn & """ticket_list"":[" & rs("TICKET_INFO_2") & "]" & vbcrlf
  38. else
  39. c_rtn = c_rtn & """code"":""" & c_errcode & ""","
  40. c_rtn = c_rtn & """info"":""" & rs("errinfo") & """"
  41. end if
  42. end if
  43. rs.close
  44. c_rtn = c_rtn & "}"
  45. response.write c_rtn
  46. %>