public TData <string> CheckSms([FromQuery] string phone, [FromQuery] string code) { //appid, secret,code TData <string> obj = new SmsCodeBLL().CheckSms(phone, code); return(obj); }
//WishUserParam public async Task <TData <string> > SaveForm(WishUserParam entity, OperatorInfo user) { TData <string> obj = new TData <string>(); obj.SetDefault(); #region 检测短信验证码 obj = new SmsCodeBLL().CheckSms(entity.MobilePhone, entity.SmsCode); #endregion if (obj.Tag == 1) { #region 封装数据 WishUserEntity wishModel = new WishUserEntity(); ClassValueCopierHelper.Copy(wishModel, entity); wishModel.TuiJianUserId = long.Parse(user.UserIdStr); wishModel.TuiJianUserTxt = user.RealName; wishModel.SrcFlag = "1"; #endregion obj = await SaveForm(wishModel); } return(obj); }