public Hashtable uc_pm_viewnode(int uid, int type, int pmid) { Hashtable ht = new Hashtable(); ht.Add("uid", uid); ht.Add("type", type); ht.Add("pmid", pmid); return(XmlCompent.GetTable(call_user_func("pm", "viewnode", ht))); }
/// <summary> /// 删除用户信息接口 /// </summary> public int uc_user_delete(int uid) { Hashtable ht = new Hashtable(); ht.Add("uid", uid); Hashtable hb = XmlCompent.GetTable(call_user_func("user", "delete", ht)); return(int.Parse(hb["item_0"].ToString())); }
public Hashtable uc_pm_view(int uid, int pmid, int touid, int daterange) { Hashtable ht = new Hashtable(); ht.Add("uid", uid); ht.Add("pmid", pmid); ht.Add("touid", touid); ht.Add("daterange", daterange); return(XmlCompent.GetTable(call_user_func("pm", "view", ht))); }
/// <summary> /// 获取短消息列表 /// </summary> /// <param name="uid">用户 ID</param> /// <param name="page">当前页编号,默认值 1</param> /// <param name="pagesize">每页最大条目数,默认值 10</param> /// <param name="folder">打开的目录 newbox=未读消息,inbox=收件箱,outbox=发件箱</param> /// <param name="filter">过滤方式 newpm=未读消息,systempm=系统消息,announcepm=公共消息</param> /// <param name="msglen">截取的消息文字长度</param> /// <returns>array('count' => 消息总数, 'data' => 短消息数据)</returns> public Hashtable uc_pm_list(int uid, int page, int pagesize, string folder, string filter, int msglen) { Hashtable ht = new Hashtable(); ht.Add("uid", uid); ht.Add("page", page); ht.Add("pagesize", pagesize); ht.Add("folder", folder); ht.Add("filter", filter); ht.Add("msglen", msglen); return(XmlCompent.GetTable(call_user_func("pm", "ls", ht))); }
public Hashtable uc_pm_checknew(int uid, int more) { if (more == 0) { more = 1; //至少为1 } Hashtable ht = new Hashtable(); ht.Add("uid", uid); ht.Add("more", more); return(XmlCompent.GetTable(call_user_func("pm", "check_newpm", ht))); }
public string[] uc_user_login(string uname, string pword, int id, int checkques, int questionid, string answer) { Hashtable ht = new Hashtable(); ht.Add("username", uname); ht.Add("password", pword); ht.Add("isuid", id); ht.Add("checkques", checkques); ht.Add("questionid", questionid); ht.Add("answer", answer); Hashtable hb = XmlCompent.GetTable(call_user_func("user", "login", ht)); string[] s = new string[5]; s[0] = hb["item_0"].ToString(); //返回用户 ID,表示用户登录成功 s[1] = hb["item_1"].ToString(); //用户名 s[2] = hb["item_2"].ToString(); //密码 s[3] = hb["item_3"].ToString(); //Email s[4] = hb["item_4"].ToString(); //用户名是否重名,如果应用程序是升级过来的,并且当前登录用户和已有用户重名,那么返回的数组中 [4] 的值将返回 1 return(s); }
public string[] uc_get_user(string username, int isuid) { Hashtable ht = new Hashtable(); ht.Add("username", username); ht.Add("isuid", isuid); string ss = call_user_func("user", "get_user", ht); string[] s = new string[3]; if (ss.Length < 20) { s[0] = ss; s[1] = ""; s[2] = ""; } else { Hashtable hb = XmlCompent.GetTable(ss); s[0] = hb["item_0"].ToString(); //用户 ID s[1] = hb["item_1"].ToString(); //用户名 s[2] = hb["item_2"].ToString(); //Email } return(s); }