hongze 7 mesi fa
parent
commit
bb644e7b9a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      models/user/template_user.go

+ 1 - 1
models/user/template_user.go

@@ -44,6 +44,6 @@ func RegisterTemplateUser(user *TemplateUser) (err error) {
 }
 
 func BindMobile(userId int, mobile string) (err error) {
-	err = models.Main().Where("id = ?", userId).Updates(map[string]interface{}{"mobile": mobile, "updated_time": time.Now()}).Error
+	err = models.Main().Table("template_users").Where("id = ?", userId).Updates(map[string]interface{}{"mobile": mobile, "updated_time": time.Now()}).Error
 	return
 }