Beispiel #1
0
        public string TEst(string phone, string city, string yzm, string fromid)
        {
            DesingerBLL.Desinger bll = new DesingerBLL.Desinger();

            bll.Adddesinger("15136134321", "2", "", "");

            return("{\"errorcode\":\"0\",\"msg\":\"注册成功\"}");
        }
Beispiel #2
0
        /// <summary>
        /// 发送验证码
        /// </summary>
        /// <param name="phone"></param>
        /// <returns></returns>
        public string SendCode(string phone, string tcode)
        {
            if (Session["checkCode"] == null || Session["checkCode"].ToSafeString().Trim().ToLower() != tcode.ToSafeString().Trim().ToLower())
            {
                return("{\"errorcode\":\"3\",\"msg\":\"图文验证码错误\"}");
            }
            DesingerBLL.Desinger bll = new DesingerBLL.Desinger();

            return(bll.SendMsg(phone));
        }
Beispiel #3
0
        //phone: phone, city: city, yzm: yzm, fromid
        public string AddDesinger(string phone, string city, string yzm, string fromid)
        {
            if (Commen.DataCache.GetCache("desinger" + phone) == null)
            {
                return("{\"errorcode\":\"1\",\"msg\":\"验证码错误\"}");
            }
            if (Commen.DataCache.GetCache("desinger" + phone).ToSafeString() != yzm)
            {
                return("{\"errorcode\":\"1\",\"msg\":\"验证码错误\"}");
            }

            DesingerBLL.Desinger bll = new DesingerBLL.Desinger();

            bll.Adddesinger(phone, city, yzm, fromid);

            return("{\"errorcode\":\"0\",\"msg\":\"注册成功\"}");
        }