搜索
 找回密码
 加入

好人呀 救救我吧

nanrenpss 2009-1-7 12:05:24 1021
新号进游戏的时候没有选择国家  直接进了人族建号的界面怎么解决呀

搞了几天了  一直没搞好

还有就是 每次登陆的时候随便个帐号密码就能进,这个怎么解决呀

谢谢

2 回复

admin
2008-12-25 23:29:48
点击查看详情
替换ACCOUNT_LOGIN存储看看
  1. CREATE PROCEDURE ACCOUNT_LOGIN
  2. @AccountID        varchar(21),
  3. @Password        varchar(13),
  4. @nRet                smallint        OUTPUT

  5. AS
  6. -- Myst tarafından kodlanmıştır ( burayı değiştiren toptur )

  7. select @nRet = count(straccountid) from tb_user where straccountid = @AccountID

  8. if @nRet = 0
  9. begin
  10. insert into tb_user (straccountid, strpasswd, strSocNo, idays) values (@AccountID, @password, 1, '6')
  11. end



  12.         -- tid login method by samma 2004.02.24

  13. DECLARE @Nation tinyint, @CharNum smallint
  14. SET @Nation = 0
  15. SET @CharNum = 0

  16. DECLARE @pwd varchar(13)

  17. SET @pwd = null

  18. SELECT @pwd = strPasswd FROM [dbo].[TB_USER] WHERE strAccountID = @AccountID  and  idays>0
  19. IF @pwd IS null
  20. BEGIN
  21.         SET @nRet = 0
  22.              --SET @nRet = 4
  23.         RETURN
  24. END

  25. ELSE IF @pwd <> @Password
  26. BEGIN
  27.         SET @nRet = 0
  28.              --SET @nRet = 3
  29.         RETURN
  30. END

  31. DECLARE @gokhantasci varchar(21)
  32. select @gokhantasci = count(straccountid)  FROM premium_service WHERE strAccountID = @AccountID

  33. if @gokhantasci = 0
  34. begin
  35. insert into PREMIUM_SERVICE (strAccountID, strType, nDays) VALUES (@AccountID, 1, 3)
  36. end

  37. SELECT @Nation = bNation, @CharNum = bCharNum FROM ACCOUNT_CHAR WHERE strAccountID = @AccountID
  38. IF @@ROWCOUNT = 0
  39. BEGIN
  40.         SET @nRet = 1
  41.         RETURN
  42. END
  43. IF @CharNum = 0
  44. BEGIN
  45.         SET @nRet = 1
  46.         RETURN
  47. END
  48. ELSE
  49. BEGIN
  50.         SET @nRet = @Nation+1
  51.              --SET @nRet = 1
  52.         RETURN
  53. END
  54. GO
复制代码
hhbwzh
2009-1-7 12:05:24
应该换了储存就没问题了
高级模式
游客