示例#1
0
        protected JsonResult RepReurn(int code, string msg, object data)
        {
            RepMsg rg = new RepMsg()
            {
                Code = code, Message = msg, Data = data
            };

            return(base.Json(rg, JsonRequestBehavior.AllowGet));
        }
示例#2
0
        protected JsonResult RepReurnOK(object data)
        {
            RepMsg rg = new RepMsg()
            {
                Code = 0, Data = data
            };

            return(base.Json(rg, JsonRequestBehavior.AllowGet));
        }
示例#3
0
        protected JsonResult RepReurnError(string msg)
        {
            RepMsg rg = new RepMsg()
            {
                Code = -1, Message = msg
            };

            return(base.Json(rg, JsonRequestBehavior.AllowGet));
        }
示例#4
0
        public void AddNewGroupToList(long GroupID)
        {
            RepMsg _new = new RepMsg();

            _new.AllowRepeat = true;
            _new.AllowReply  = true;
            _new.FromQQ      = 0;
            _new.LastRep     = "";
            _new.Msg         = "";
            GroupState.Add(GroupID, _new);
        }