我在asp.net中调用与UCenter的接口,登录或者获取用户信息等操作都没有问题,就是在获取短消息列表时总取不到,是我调用方式有问题吗
IUcClient client = new UcClient();
UcUserInfo ui = client.UserInfo(HttpContext.User.Identity.Name);
UcPmList lstPm = client.PmList(ui.Uid, 1, 5, PmReadFolder.NewBox, PmReadFilter.NewPm);
以下是PmList方法:
public UcPmList PmList(int uid, int page = 1, int pageSize = 10, PmReadFolder folder = PmReadFolder.NewBox, PmReadFilter filter = PmReadFilter.NewPm, int msgLen = 0)
{
var args = new Dictionary<string, string>
{
{"uid", uid.ToString()},
{"page", page.ToString()},
{"pagesize", pageSize.ToString()},
{"folder", folder.ToString().ToLower()},
{"filter",filter.ToString().ToLower()},
{"msglen", msgLen.ToString()}
};
return new UcPmList(SendArgs(args, UcPmModelName.ModelName, UcPmModelName.ActionList));
}
|