Beispiel #1
0
        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("查询失败");
        }
Beispiel #2
0
 protected ResponseData BuildFaild(int code)
 {
     return(ResponseData.BuildFailedResponse(code));
 }
Beispiel #3
0
 protected ResponseData BuildFaild(int code, string message)
 {
     return(ResponseData.BuildFailedResponse(code, message));
 }
Beispiel #4
0
 protected ResponseData BuildFaild(string message)
 {
     return(ResponseData.BuildFailedResponse(StatusConst.DefaultFailureStatus, message));
 }
Beispiel #5
0
 protected ResponseData BuildFaild()
 {
     return(ResponseData.BuildFailedResponse(StatusConst.DefaultFailureStatus));
 }
Beispiel #6
0
 protected ResponseData <T> BuildFaild <T>(int code)
 {
     return(ResponseData <T> .BuildFailedResponse(code));
 }
Beispiel #7
0
 protected ResponseData BuildSuccess()
 {
     return(ResponseData.BuildSuccessResponse());
 }
Beispiel #8
0
 protected ResponseData <T> BuildSuccess <T>(T data)
 {
     return(ResponseData <T> .BuildSuccessResponse(data));
 }