首页 > Web开发 > 详细

asp

时间:2016-01-14 00:53:21      阅读:286      评论:0      收藏:0      [点我收藏+]
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="include.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%
key=replace(trim(request("key")),"","")
PayNO=replace(trim(request.form("PayNO")),"","")
If PayNO="" Then PayNO=replace(trim(request("PayNO")),"","")
PayJe=replace(trim(request.form("PayJe")),"","")
If PayJe="" Then PayJe=replace(trim(request("PayJe")),"","")
PayMore=replace(trim(request.form("PayMore")),"","")
If PayMore="" Then PayMore=replace(trim(request("PayMore")),"","")
PayTime=replace(trim(request.form("PayTime")),"","")
If PayTime="" Then PayTime=replace(trim(request("PayTime")),"","")
if PayNO<>"" and PayJe<>"" and isnumeric(PayJe)<>""  and trim(PayPwd)=""&Trim(key)&"" Then
    If PayMore="" Then
    uid=0
    Else
        set rs=server.CreateObject("adodb.recordset")
        sql="select * from users where username=‘"&PayMore&""
        rs.open sql,conn,1,1
        if not rs.eof Then
        uid=rs("id")
        NowAmount=rs("amount")+PayJe
        Else
        uid=0
        end if
        rs.close
        set rs=Nothing
    End If
    set rs=server.CreateObject("adodb.recordset")
    sql="select * from chongzhi where alipay_orderno=‘"&PayNO&""
    rs.open sql,conn,1,3
    if rs.eof and rs.bof then
    rs.addnew
    rs("uid")=uid
    rs("alipay_orderno")=PayNO
    rs("amount")=PayJe
    rs("PayTime")=PayTime
    rs("addtime")=now()
    rs("PayMore")=PayMore
    If uid>0 Then
    rs("status")=1
    Else
    rs("status")=3
    End If
    rs("typ")=2
    rs.update
    response.Write "Success"
    Else
        If rs("status")=0 Then
        rs("amount")=PayJe
        rs("PayTime")=PayTime
        rs("addtime")=now()
        rs("PayMore")=PayMore
        If uid>0 Then
        rs("status")=1
        Else
        rs("status")=3
        End If
        rs("typ")=2
        rs.update
        response.Write "Success"
        Else
        response.Write "Err"
        response.End
        End If
    end if
    rs.close
    set rs=Nothing
    If uid>0 Then
        set rs=server.CreateObject("adodb.recordset")
        sql="select * from users where id="&uid
        rs.open sql,conn,1,3
        if not rs.eof then
        rs("amount")=NowAmount
        rs.update
        end if
        rs.close
        set rs=Nothing
    End If
Else
response.Write "cuowu"
response.End
end if
conn.close
set conn=Nothing
%>

 

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="include.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%
if trim(request("PayNO"))<>"" and trim(request("PayJe"))<>"" and isnumeric(request("PayJe"))<>"" and trim(request("key"))="2015518" then 
     
    set rs=server.CreateObject("adodb.recordset")
    sql="select * from chongzhi where alipay_orderno=‘"&checkstr(request("PayNO"))&""
    rs.open sql,conn,1,3
    if rs.eof and rs.bof then    
    rs.addnew
    
    rs("alipay_orderno")=request("PayNO")
    rs("amount")=request("PayJe")
    rs("addtime")=now()
    rs("status")=3
    rs("typ")=2
    
    rs.update
    end if
    rs.close
    set rs=nothing     
     
end if

conn.close
set conn=nothing
%>

 

asp

原文:http://www.cnblogs.com/iicoo/p/5128921.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!