当前位置:   article > 正文

vip会员升级_csdn会员如何升级超级会员

csdn会员如何升级超级会员
  1. u_level=2 '升级高级VIP
  2. set rs = conn.db("SELECT * FROM vip_user WHERE open_id='"&openid&"'","1")
  3. if Not rs.EOF Then
  4. if rs("pay_state")=1 then '已支付
  5. if rs("vip_level")=2 then '当前会员级别:vip
  6. strMsg="您已是高级VIP会员,请勿重复购买!"
  7. pay_state=1
  8. elseif rs("vip_level")=1 then '当前高级vip
  9. if u_level=2 then
  10. conn.db "update vip_user set user_state=0 where vip_level=1 and open_id='"&openid&"'","0"
  11. conn.db "insert into vip_user(order_no,userId,parentId,open_id,nickname,vip_level,total_fee,start_time,stop_time) values('"&out_trade_no&"',"&uid&","&fid&",'"&openid&"','"&nickname&"',"&u_level&",6800,'"&Now()&"','"&DateAdd("yyyy",1,Now())&"')","0"
  12. strMsg="恭喜您,您已成功购买高级vip会员服务!"
  13. else
  14. strMsg="您已是VIP会员,请勿重复购买!"
  15. pay_state=1
  16. end if
  17. end if
  18. else
  19. conn.db "delete * from vip_user where open_id='"&openid&"'","0"
  20. select case u_level
  21. case 1
  22. conn.db "insert into vip_user(order_no,userId,parentId,open_id,nickname,vip_level,total_fee,start_time,stop_time) values('"&out_trade_no&"',"&uid&","&fid&",'"&openid&"','"&nickname&"',"&u_level&",688,'"&Now()&"','"&DateAdd("yyyy",1,Now())&"')","0"
  23. strMsg="恭喜您,您已成功购买vip会员服务!"
  24. case 2
  25. conn.db "insert into vip_user(order_no,userId,parentId,open_id,nickname,vip_level,total_fee,start_time,stop_time) values('"&out_trade_no&"',"&uid&","&fid&",'"&openid&"','"&nickname&"',"&u_level&",6800,'"&Now()&"','"&DateAdd("yyyy",1,Now())&"')","0"
  26. strMsg="恭喜您,您已成功购买高级vip会员服务!"
  27. case else
  28. strMsg="unknown error"
  29. end select
  30. end if
  31. else
  32. select case u_level
  33. case 1
  34. conn.db "insert into vip_user(order_no,userId,parentId,open_id,nickname,vip_level,total_fee,start_time,stop_time) values('"&out_trade_no&"',"&uid&","&fid&",'"&openid&"','"&nickname&"',"&u_level&",688,'"&Now()&"','"&DateAdd("yyyy",1,Now())&"')","0"
  35. strMsg="恭喜您,您已成功购买vip会员服务!"
  36. case 2
  37. conn.db "insert into vip_user(order_no,userId,parentId,open_id,nickname,vip_level,total_fee,start_time,stop_time) values('"&out_trade_no&"',"&uid&","&fid&",'"&openid&"','"&nickname&"',"&u_level&",6800,'"&Now()&"','"&DateAdd("yyyy",1,Now())&"')","0"
  38. strMsg="恭喜您,您已成功购买高级vip会员服务!"
  39. case else
  40. strMsg="unknown error"
  41. end select
  42. end if
  43. rs.close
  44. set rs=nothing

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/317593
推荐阅读
相关标签
  

闽ICP备14008679号