Exemplo n.º 1
0
        public int Sign(string userName, string userId, string type, double lng, double lat)
        {
            string cookies = HttpContext.Current.Request.Cookies["guid"] == null ? "" : HttpContext.Current.Request.Cookies["guid"].Value as string;
            string session = Session.SessionID.ToString();

            if (!cookies.Equals(session))
            {
                return(-10);//身份验证失败
            }
            MLogin.GetExeUname();
            if (type.ToUpper() == "SIGNIN")
            {
                return(SignCS.SignIn(userName, userId, lng, lat));
            }
            else if (type.ToUpper() == "SIGNOUT")
            {
                return(SignCS.SignOut(userName, userId, lng, lat));
            }
            else if (type != "")
            {
                if (MyGlobal.SignType)//区分签到签退
                {
                    return(SignCS.Sign_P(userName, userId, lng, lat, type));
                }
                else
                {
                    return(SignCS.Sign_P(userName, userId, lng, lat, ""));
                }
            }
            else
            {
                return(-10);//身份验证失败
            }
        }
Exemplo n.º 2
0
        public List <string> SignNote(string userId, string date)
        {
            string cookies = HttpContext.Current.Request.Cookies["guid"] == null ? "" : HttpContext.Current.Request.Cookies["guid"].Value as string;
            string session = Session.SessionID.ToString();

            if (!cookies.Equals(session))
            {
                return(null);//身份验证失败
            }
            MLogin.GetExeUname();
            return(SignCS.SignRemark(userId, date));
        }