public IActionResult func_get2980PwdByMobile(string account, string password, string newpwd, string ip, string tel, string key, string smscode, int forceset) { if (string.IsNullOrEmpty(account) || string.IsNullOrEmpty(newpwd) || (((newpwd.Length != 32) || string.IsNullOrEmpty(tel)) || (account.IndexOf("@") == -1))) { return(this.FuncResult(new APIReturn(19901, "参数错误"))); } if (!string.IsNullOrEmpty(password) && password.Length != 32) { return(this.FuncResult(new APIReturn(19901, $"参数错误{password}"))); } if (string.IsNullOrEmpty(password)) { password = FuncHelper.UTF8MD5(" "); } if (forceset != 1) { forceset = 0; } if (!IFConfigReader.IsProg) { if (string.IsNullOrEmpty(key)) { return(this.FuncResult(new APIReturn(10005, "短信验证KEY不能为空"))); } if (string.IsNullOrEmpty(smscode)) { return(this.FuncResult(new APIReturn(10004, "短信验证码不能为空"))); } var smsCheckRet = SmsController.CheckSMS(key, smscode); if (smsCheckRet.Code != 0) { return(this.FuncResult(smsCheckRet)); } } var dicParams = this.DicParams; dicParams.Add("account", account); dicParams.Add("password", password); dicParams.Add("newpwd", newpwd); dicParams.Add("ip", ip); dicParams.Add("tel", tel); dicParams.Add("forceset", forceset); return(this.FuncResult(DC2Invoker.InvokeHttp("get_2980pwd_by_mobile", HttpMethod.Get, dicParams))); }