1299库的ACCOUNT_LOGOUT存储过程游戏退出不执行,有人知道什么原因吗?
1299库的ACCOUNT_LOGOUT存储过程游戏退出不执行,有人知道什么原因吗? 你这个存储发上来 首先当前用户没有删除,其它的update语句也没作用ALTER PROCEDURE .
@AccountID varchar(21),
@nRet smallint OUTPUT
AS
BEGIN TRAN
DELETE FROM CURRENTUSER WHERE strAccountID = @AccountID
COMMIT TRAN
UPDATE TB_USER SET eTime=getdate() where strAccountID=@AccountID
DECLARE @sTime smalldatetime,@eTime smalldatetime,@point int
SET @eTime=getdate()
SELECT @sTime=sTime,@point=cashPoint FROM TB_USER WHERE strAccountID=@AccountID
if @point=null
begin
set @point=0
end
UPDATE TB_USER SET cashPoint=@point+datediff(s,@sTime,@eTime)/60 where strAccountID=@AccountID
SET @nRet = 1 你的point字段默认是null?如果是请改成0,然后把所有帐号的该字段point 使用如下命令设置一下
update tb_user set point=0
存储过程也适当改一下,还有存储过程最后加一个return看看。 我自己看出来了,谢谢!我晕了,这错以前怎么没注意到............{:1_214:}
页:
[1]