登录 注册
当前位置:主页 > 资源下载 > 33 > 实物点卡生成系统(包含数据库脚本和存储过程)由网狐提供

实物点卡生成系统(包含数据库脚本和存储过程)由网狐提供

  • 更新:2024-09-09 20:01:14
  • 大小:225KB
  • 推荐:★★★★★
  • 来源:网友上传分享
  • 类别:C++ - 后端
  • 格式:RAR

资源介绍

不废话, 用了就知道 ,亲自试验通过 部分代码如下: 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]= '您输入的卡号和密码不正确!'