FIX 调整注册接口

This commit is contained in:
jasder
2021-11-02 13:39:45 +08:00
parent 6c67b92bb1
commit 1008f17849
11 changed files with 269 additions and 89 deletions
+6
View File
@@ -455,5 +455,11 @@ module ApplicationHelper
sidebar_item(url, "数据统计", icon: 'bar-chart', controller: 'root')
end
end
# 1 手机类型;0 邮箱类型
# 注意新版的login是自动名生成的
def phone_mail_type value
value =~ /^1\d{10}$/ ? 1 : 0
end
end