Example #1
0
 public static string create(UserInfo user)
 {
     var result = Post.PostJson<CreateUserResult>(string.Format(URL_CREATE, Auth.GetToken()), user);
     if (result != null)
     {
         return result.userid;
     }
     return string.Empty;
 }
Example #2
0
 public static bool update(UserInfo user)
 {
     var result = Post.PostJson<JsonResult>(string.Format(URL_UPDATE, Auth.GetToken()), user);
     return result.errcode == ReturnCode._请求成功;
 }