xingzai 1 vuosi sitten
vanhempi
commit
541960840d
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      controllers/activity_sign.go

+ 2 - 1
controllers/activity_sign.go

@@ -141,7 +141,7 @@ func (this *ActivitySignCoAntroller) Detail() {
 	detail.CompanyName = user.CompanyName
 
 	//用于前端二次回显
-	if user.RealName == "" {
+	if user.Mobile == "" {
 		pars = make([]interface{}, 0)
 		condition = " AND  open_id = ?  AND activity_id = ?  "
 		pars = append(pars, user.OpenId, activityId)
@@ -156,6 +156,7 @@ func (this *ActivitySignCoAntroller) Detail() {
 			detail.Mobile = signinDetail.Mobile
 			detail.RealName = signinDetail.RealName
 			detail.CompanyName = signinDetail.CompanyName
+			detail.IsNewUser = true
 		}
 	}
 	resp.Detail = detail