Beispiel #1
0
        public static Phone_codemodel GetNoteRecord(string openid, int comid)
        {
            var list = new Phone_codemodel();

            using (var helper = new SqlHelper())
            {
                list = new Phone_code(helper).GetNoteRecord1(openid, comid);
                return(list);
            }
        }
Beispiel #2
0
        public static Phone_codemodel code_info(decimal phone, int comid, string openid)
        {
            var list = new Phone_codemodel();

            using (var helper = new SqlHelper())
            {
                list = new Phone_code(helper).codemodel(phone, comid, openid);
                return(list);
            }
        }
Beispiel #3
0
 public static string upcode(decimal phone, decimal code, int comid, int sendnum, int codebool, string openid)
 {
     try
     {
         var pro = "";
         using (var helper = new SqlHelper())
         {
             pro = new Phone_code(helper).upphone(phone, code, comid, sendnum, codebool, openid);
         }
         return(JsonConvert.SerializeObject(new { type = 100, msg = pro }));
     }
     catch (Exception ex)
     {
         return(JsonConvert.SerializeObject(new { type = 1, msg = ex.Message }));
     }
 }
Beispiel #4
0
        public static string insertcode(decimal phone, decimal code, int comid, int num)
        {
            var pro = "";

            using (var helper = new SqlHelper())
            {
                pro = new Phone_code(helper).insertphone(phone, code, comid, num);
            }

            try
            {
                return(JsonConvert.SerializeObject(new { type = 100, msg = pro }));
            }
            catch (Exception ex)
            {
                pro = ex.Message;
                return(JsonConvert.SerializeObject(new { type = 1, msg = pro }));
            }
        }