/// <summary> /// 判断某商品是否被收藏 /// </summary> /// <param name="productId"></param> /// <returns></returns> public async Task <string> JudgeCollection(string productId) { string url = string.Format("/goods/judgeCollection?userId={0}&productId={1}", GlobalVariables.LoggedUser.id, productId); string str = await RestSharpHelper <string> .GetAsyncWithoutDeserialization(url); return(str); }
public static async Task <string> GetNewestVersion() { try { string url = "/App/getNowApp"; string str = await RestSharpHelper <string> .GetAsyncWithoutDeserialization(url); return(str); } catch (ApplicationException ex) { throw ex; } }