From 5da6330f5736b27a2bd430d221b653744a8c5647 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Thu, 24 Nov 2022 14:30:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=8B=E6=9C=BA=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E7=A0=81=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/api/v1/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/users_controller.rb b/app/controllers/api/v1/users_controller.rb index 11446533c..3a750b519 100644 --- a/app/controllers/api/v1/users_controller.rb +++ b/app/controllers/api/v1/users_controller.rb @@ -75,7 +75,7 @@ class Api::V1::UsersController < Api::V1::BaseController phone = strip(params[:phone]) code_type = params[:code_type] - return tip_exception(-2, "手机号格式有误") unless mail =~ CustomRegexp::PHONE + return tip_exception(-2, "手机号格式有误") unless phone =~ CustomRegexp::PHONE verifi_code = VerificationCode.where(phone: phone, code: code, code_type: code_type).last return render_ok if code == "123123" && EduSetting.get("code_debug") # 万能验证码,用于测试 # TODO 万能验证码,用于测试