public static T Get <T>(string url, Object requestModel) { var requestData = requestModel == null ? "" : getUrlParams(requestModel); var uri = m_APIUrl + url + requestData; var json = SDKHttpRequest._GET(uri); if (string.IsNullOrWhiteSpace(json)) { json = "{}"; } return(MyJSONHelper.JsonToObject <T>(json)); }
/// <summary> /// 获取二维码 /// </summary> /// <param name="user_id"></param> /// <param name="r_id"></param> /// <returns></returns> public static string _GetDex(string user_id, string r_id) { #if DEBUG user_id = "1"; r_id = "1"; #endif string uri = m_APIBase + "/hahaha/dex.php"; if (!string.IsNullOrEmpty(user_id) && !string.IsNullOrEmpty(r_id)) { uri += "?user_id=" + user_id + "&r_id=" + r_id; } var content = SDKHttpRequest._GET(uri); return(content); }