رد: مشكلة في اكونت GM الرجاء الرد
جرب و اقولي بس اعمل اكونت جديد
كود PHP:
USE [SRO_VT_ACCOUNT] GO /****** Object: StoredProcedure [dbo].[_CertifyUser] Script Date: 01/09/2016 15:19:28 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER procedure [dbo].[_CertifyUser] @szUserID varchar(25), @szPassword varchar(50), @szSSNumber varchar(32) as declare @nUserJID int declare @sec_primary tinyint declare @sec_content tinyint set @nUserJID = 0 set @sec_primary = 0 set @sec_content = 0 if (not exists(select JID from TB_User where StrUserID = @szUserID)) begin select convert( int, 0), convert( tinyint, 0), convert( tinyint, 0) return end select @nUserJID = JID from TB_User where StrUserID = @szUserID if (@nUserJID = 0 or @nUserJID is null or @@error <> 0 or @@rowcount = 0) begin select convert( int, 0), convert( tinyint, 0), convert( tinyint, 0) return end if (not exists(select JID from TB_User where JID = @nUserJID and password = @szPassword)) begin select convert( int, 0), convert( tinyint, 0), convert( tinyint, 0) return end select @sec_primary = sec_primary, @sec_content = sec_content from TB_User with (nolock) where JID = @nUserJID select @nUserJID, @sec_primary, @sec_content
كود PHP:
USE [SRO_VT_ACCOUNT] GO /****** Object: StoredProcedure [dbo].[_CertifyTB_User] Script Date: 01/09/2016 15:21:33 ******/ SET ANSI_NULLS OFF GO SET QUOTED_IDENTIFIER OFF GO
ALTER PROCEDURE [dbo].[_CertifyTB_User] @szUserID varchar(25), @szPassword varchar(50) AS declare @nUserJID int declare @sec_primary tinyint declare @sec_content tinyint set @nUserJID = 0 set @sec_primary = 0 set @sec_content = 0 --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -- ؛£ئ®³² °واèؤ، ء¾·®ء¦ (أض¼±ب£) --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ declare @AccPlayTime int declare @LatestUpdateTime_ToPlayTime int set @AccPlayTime = 0 set @LatestUpdateTime_ToPlayTime = 0 select @nUserJID = JID, @sec_primary = sec_primary, @sec_content = sec_content, @AccPlayTime = AccPlayTime, @LatestUpdateTime_ToPlayTime = LatestUpdateTime_ToPlayTime from TB_User --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
where StrUserID = @szUserID and password = @szPassword if( @nUserJID = 0 or @nUserJID is null or @@error <> 0 or @@rowcount = 0) begin select convert( tinyint, 1), convert( int, 0), convert( tinyint, 0), convert( tinyint, 0) return end if( exists( select Type from _BlockedUser where UserJID = @nUserJID and Type = 1 and getdate() between timeBegin and timeEnd)) begin select convert( tinyint, 3), @nUserJID, convert( tinyint, 0), convert( tinyint, 0) return end
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -- ؛£ئ®³² °واèؤ، ء¾·®ء¦ (أض¼±ب£) --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ select convert(tinyint, 0), @nUserJID, @sec_primary, @sec_content, @AccPlayTime, @LatestUpdateTime_ToPlayTime --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
return
|