kfyyq 发表于 2009-8-31 13:42:44

1299库的ACCOUNT_LOGOUT存储过程游戏退出不执行,有人知道什么原因吗?

1299库的ACCOUNT_LOGOUT存储过程游戏退出不执行,有人知道什么原因吗?

ctgwglzc 发表于 2009-8-31 14:28:31

你这个存储发上来

kfyyq 发表于 2009-8-31 23:27:49

首先当前用户没有删除,其它的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

wang9898 发表于 2009-9-1 00:01:51

你的point字段默认是null?如果是请改成0,然后把所有帐号的该字段point 使用如下命令设置一下
update tb_user set point=0
存储过程也适当改一下,还有存储过程最后加一个return看看。

kfyyq 发表于 2009-9-1 00:10:03

我自己看出来了,谢谢!我晕了,这错以前怎么没注意到............{:1_214:}
页: [1]
查看完整版本: 1299库的ACCOUNT_LOGOUT存储过程游戏退出不执行,有人知道什么原因吗?