public static string EmptyMobile(string mobile) { try { Dictionary <String, Object> Params = new Dictionary <String, Object>(); Params.Add("apiName", "S1447925"); Params.Add("password", "pwd3971603"); Params.Add("mobile", mobile); string responseStr = doPost("https://kh_bd.253.com//feign/apiMobileTest/findByMobile", ToUrl(Params)); ResponseData response = Common.JsonHelper.JsonDeserialize <ResponseData>(responseStr); if (response != null && response.resultCode == "000000" && response.resultObj != null && response.resultObj.Count > 0) { return(Enum.GetName(typeof(status), Common.TypeHelper.ObjectToInt(response.resultObj[0].status, 1))); } //return response.resultMsg; } catch (Exception ex) { } return("查询失败"); }
protected ResponseData BuildFaild(int code) { return(ResponseData.BuildFailedResponse(code)); }
protected ResponseData BuildFaild(int code, string message) { return(ResponseData.BuildFailedResponse(code, message)); }
protected ResponseData BuildFaild(string message) { return(ResponseData.BuildFailedResponse(StatusConst.DefaultFailureStatus, message)); }
protected ResponseData BuildFaild() { return(ResponseData.BuildFailedResponse(StatusConst.DefaultFailureStatus)); }
protected ResponseData <T> BuildFaild <T>(int code) { return(ResponseData <T> .BuildFailedResponse(code)); }
protected ResponseData BuildSuccess() { return(ResponseData.BuildSuccessResponse()); }
protected ResponseData <T> BuildSuccess <T>(T data) { return(ResponseData <T> .BuildSuccessResponse(data)); }