public static string UserShow(string uid, bool castFlag = false) { string url = castFlag ? string.Format(WyxCache.AppCfg.OpenApiUrl, DefineWyxUri.CastUserShow) :DefineWyxUri.User_show; var client = new WyxClient(url); client.AddQueryArgs(DefineWyxArgs.COLUid, uid); return(client.WebGet()); }
public static string PayOrderStatus(string orderId, string userId) { var client = new WyxClient(DefineWyxUri.Pay_order_status); client.AddQueryArgs(DefineWyxArgs.COLOrderId, orderId); client.AddQueryArgs(DefineWyxArgs.COLUserId, userId); client.NoSesssionKey = true; return(client.WebGet()); }
public static string CastRoleUpdate(string serverId, string roleName, string uid = "") { string url = string.Format(WyxCache.AppCfg.OpenApiUrl, DefineWyxUri.CastRoleUpdate); var client = new WyxClient(url); client.AddQueryArgs(DefineWyxArgs.COLServerId, serverId); client.AddQueryArgs(DefineWyxArgs.COLRoleName, roleName); if (!string.IsNullOrEmpty(uid)) { client.AddQueryArgs(DefineWyxArgs.COLUid, uid); } return(client.WebGet()); }