コード例 #1
0
 public ActionResult checkAccount(string account, string accounttype, string verifykey = null)
 {
     //验证码
     if (!string.IsNullOrEmpty(verifykey))
     {
         var code = Config.UserConfig.getVerifyCode(account);
         if (code == null || !code.Code.Equals(verifykey.ToLower()))
         {
             return(this.getResult(Entity.Error.错误, "验证码错误或已经过期"));
         }
     }
     using (var manage = new bitcms.Data.CMSManage())
     {
         var userid = manage.checkUserBindCode(accounttype, account);
         return(this.getResult(manage.Error, manage.Message, new { UserId = userid }));
     }
 }