|
@@ -32,9 +32,13 @@ func SyncUser(qsEventId int) (err error) {
|
|
|
|
|
|
companyProductMap := make(map[string]*company_product.CompanyProduct)
|
|
|
companyMap := make(map[string]*company.Company)
|
|
|
- people := len(qsData.Summary) //参与人数
|
|
|
- if qsData.Summary != nil && people > 0 {
|
|
|
+ people := 0 //参与人数
|
|
|
+ if qsData.Summary != nil {
|
|
|
for _, v := range qsData.Summary {
|
|
|
+ if v.Mobile == "" { //如果手机号为空,那么就不处理了,进入下一个循环
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ people++
|
|
|
mobile := v.Mobile
|
|
|
trimMobile := mobile
|
|
|
countryCode := "86"
|
|
@@ -73,12 +77,16 @@ func SyncUser(qsEventId int) (err error) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ name := ``
|
|
|
+ if v.Mobile != v.Name {
|
|
|
+ name = v.Name
|
|
|
+ }
|
|
|
qsEventUserInfo := &qs_event_user.QsEventUser{
|
|
|
QsId: qsEventInfo.QsId,
|
|
|
UserId: 0,
|
|
|
Mobile: v.Mobile,
|
|
|
Email: v.Email,
|
|
|
- Name: v.Name,
|
|
|
+ Name: name,
|
|
|
//RegisterTime: time.Time{},
|
|
|
ViewTotal: 0,
|
|
|
//LastViewTime: time.Time{},
|