Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 

43 rindas
1.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_openid = request.cookies("m_openid")
  7. c_customerid = request("cusid")
  8. 'if c_openid="" then c_openid="oCVcbv7KuCup-yFON07plMg4IQAU"
  9. c_rtn = ""
  10. csql = "APP_MEMBER_LINKER_DEL '" & c_openid & "'," & c_customerid
  11. ' response.write csql
  12. set rs=conn.execute(csql)
  13. if not rs.eof then
  14. nnum1 = rs("errcode")
  15. c_rtn = "{""code"":""" & nnum1 & ""","
  16. c_rtn = c_rtn & """info"":""" & rs("errinfo") & """"
  17. nnum2 = rs("linker_count")
  18. if nnum2 - 0 > 0 then
  19. c_rtn = c_rtn & ",""customer"":["
  20. c_rtn1 = ""
  21. do until rs.eof
  22. c_rtn1 = c_rtn1 & "{"
  23. c_rtn1 = c_rtn1 & """customer_id"":""" & rs("id") & ""","
  24. c_rtn1 = c_rtn1 & """customer_name"":""" & rs("customer_name") & ""","
  25. c_rtn1 = c_rtn1 & """customer_mobile"":""" & rs("customer_mobile") & ""","
  26. c_rtn1 = c_rtn1 & """customer_idtype"":""" & rs("customer_id_type") & ""","
  27. c_rtn1 = c_rtn1 & """customer_idno"":""" & rs("customer_id_no") & """},"
  28. rs.movenext
  29. loop
  30. if right(c_rtn1,1)="," then c_rtn1 = left(c_rtn1,len(c_rtn1)-1)
  31. c_rtn = c_rtn & c_rtn1
  32. c_rtn = c_rtn & " ]" & vbcrlf
  33. end if
  34. c_rtn = c_rtn & "}" & vbcrlf
  35. end if
  36. rs.close
  37. response.write c_rtn
  38. %>