文件名称:网狐实物点卡生成(带数据库脚本和存储过程)
文件大小:225KB
文件格式:RAR
更新时间:2014-01-08 23:47:45
网狐 实物点卡 数据库脚本 存储过程
不废话, 用了就知道 ,亲自试验通过 部分代码如下: IF EXISTS (SELECT TreasureCode FROM Treasure WHERE TreasureCode=@cardcode And TreasurePass=@cardpass) BEGIN IF (Select IsPost From Treasure WHERE TreasureCode=@cardcode)=1 Begin Select [ErrorDescribe]= '对不起,此卡号已经被充值!' RETURN End Set @Price=(Select Price From Treasure WHERE TreasureCode=@cardcode) Set @IsCrad=(Select IsCard From Treasure WHERE TreasureCode=@cardcode) Update Treasure Set IsPost=1 Where TreasureCode=@cardcode Update QPTreasureDB.dbo.GameScoreinfo Set Score=Score+@Price Where UserID=@userid --update QPGameUserDB.dbo.AccountsInfo set UserRight=0 Where UserID=@userid INSERT INTO [PostLog]([PostCode],[PassWord],[UserID],[price],[PostDate],[IsCrad]) VALUES (@cardcode,@cardpass,@UserID,@price,{fn NOW()},@IsCrad) Select [ErrorDescribe]= '成功信息:充值成功!' END Else Begin Select [ErrorDescribe]= '您输入的卡号和密码不正确!'
【文件预览】:
会员卡
----CxGamePty.sql(2KB)
----会员卡过程脚本.sql(2KB)
----生成卡()
--------2010-12-12.txt(26KB)
--------CxGamePty.sql(2KB)
--------config.ini(143B)
--------实物卡生成.exe(48KB)
--------2008-9-27.txt(272B)
--------COMCTL32.OCX(595KB)
----会员卡数据库.sql(15KB)