CCN.WebAPI.ApiControllers.CustomerController.UpdatePassword C# (CSharp) Метод

UpdatePassword() приватный Метод

private UpdatePassword ( [ mRetrievePassword ) : JResult
mRetrievePassword [
Результат Cedar.Framework.Common.BaseClasses.JResult
        public JResult UpdatePassword([FromBody]CustRetrievePassword mRetrievePassword)
        {
            if (string.IsNullOrWhiteSpace(mRetrievePassword.Mobile))
            {
                return JResult._jResult(402, "手机号不能空");
            }

            var baseservice = ServiceLocatorFactory.GetServiceLocator().GetService<IBaseManagementService>();

            //检查验证码
            var cresult = baseservice.CheckVerification(mRetrievePassword.Mobile, mRetrievePassword.VCode, 3);
            if (cresult.errcode != 0)
            {
                //验证码错误
                //400验证码错误
                //401验证码过期
                return cresult;
            }

            return _custservice.UpdatePassword(mRetrievePassword);
        }