Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

customer_modify.asp 1.5 KiB

há 3 anos
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <%@ language=vbscript codepage="65001" %>
  2. <!--#include file="conn.asp"-->
  3. <!--#include file="function.asp"-->
  4. <%
  5. Response.Charset = "UTF-8"
  6. c_openid = request.cookies("m_openid")
  7. 'if c_openid="" then c_openid="oCVcbv7KuCup-yFON07plMg4IQAU"
  8. c_customer_id = request("id")
  9. c_customer_name = request("name")
  10. c_customer_mobile = request("mobile")
  11. c_customer_idno = request("idno")
  12. csql = "APP_MEMBER_LINKER_EDIT '" & c_openid & "'," & c_customer_id & ",'" & c_customer_name & "','" & c_customer_mobile & "',0,'" & c_customer_idno & "'"
  13. ' response.write csql
  14. set rs=conn.execute(csql)
  15. if not rs.eof then
  16. nnum1 = rs("errcode")
  17. c_rtn = "{""code"":""" & nnum1 & ""","
  18. c_rtn = c_rtn & """info"":""" & rs("errinfo") & """"
  19. nnum2 = rs("linker_count")
  20. if nnum2 - 0 > 0 then
  21. c_rtn = c_rtn & ",""customer"":["
  22. c_rtn1 = ""
  23. do until rs.eof
  24. c_rtn1 = c_rtn1 & "{"
  25. c_rtn1 = c_rtn1 & """customer_id"":""" & rs("id") & ""","
  26. c_rtn1 = c_rtn1 & """customer_name"":""" & rs("customer_name") & ""","
  27. c_rtn1 = c_rtn1 & """customer_mobile"":""" & rs("customer_mobile") & ""","
  28. c_rtn1 = c_rtn1 & """customer_idtype"":""" & rs("customer_id_type") & ""","
  29. c_rtn1 = c_rtn1 & """customer_idno"":""" & rs("customer_id_no") & """},"
  30. rs.movenext
  31. loop
  32. if right(c_rtn1,1)="," then c_rtn1 = left(c_rtn1,len(c_rtn1)-1)
  33. c_rtn = c_rtn & c_rtn1
  34. c_rtn = c_rtn & " ]" & vbcrlf
  35. end if
  36. c_rtn = c_rtn & "}" & vbcrlf
  37. end if
  38. rs.close
  39. response.write c_rtn
  40. %>