This commit is contained in:
astaxie
2017-07-25 21:05:49 +08:00
committed by GitHub
parent 632ed56b30
commit c326429e2f

View File

@@ -97,7 +97,7 @@ if m, _ := regexp.MatchString(`^(1[3|4|5|8][0-9]\d{4,8})$`, r.Form.Get("mobile")
slice:=[]string{"apple","pear","banane"}
v := r.Form.Get("fruit")
for _, item range slice {
for _, item := range slice {
if item == v {
return true
}