|
@@ -75,7 +75,7 @@ func (e *EntMatch) Start() {
|
|
if subSetUsers[k] != nil && subSetUsers[k].SubSet != nil {
|
|
if subSetUsers[k] != nil && subSetUsers[k].SubSet != nil {
|
|
ui.SubSet = subSetUsers[k].SubSet
|
|
ui.SubSet = subSetUsers[k].SubSet
|
|
}
|
|
}
|
|
- if ui.SubSet == nil && e.AllBehavior[ui.Id].Area != "" {
|
|
|
|
|
|
+ if ui.SubSet == nil && e.AllBehavior[ui.Id] != nil && e.AllBehavior[ui.Id].Area != "" {
|
|
ui.GetSubSet(false, ui.Id, map[string]interface{}{
|
|
ui.GetSubSet(false, ui.Id, map[string]interface{}{
|
|
"o_area": map[string]interface{}{
|
|
"o_area": map[string]interface{}{
|
|
e.AllBehavior[ui.Id].Area: []interface{}{},
|
|
e.AllBehavior[ui.Id].Area: []interface{}{},
|
|
@@ -170,7 +170,11 @@ func (e *EntMatch) LoadMySubSet(allSubSet *mr.PayUser, title_pjob, detail_pjob *
|
|
user.Phone = EntUsers[userId].Phone
|
|
user.Phone = EntUsers[userId].Phone
|
|
user.Entniche.Mail = EntUsers[userId].Mail
|
|
user.Entniche.Mail = EntUsers[userId].Mail
|
|
}
|
|
}
|
|
- isChange := ChangeUserObj(temp, subSetType, e.AllBehavior[user.Id].Area)
|
|
|
|
|
|
+ area := ""
|
|
|
|
+ if e.AllBehavior[user.Id] != nil {
|
|
|
|
+ area = e.AllBehavior[user.Id].Area
|
|
|
|
+ }
|
|
|
|
+ isChange := ChangeUserObj(temp, subSetType, area)
|
|
subSet, _ := temp["o_entniche"].(map[string]interface{})
|
|
subSet, _ := temp["o_entniche"].(map[string]interface{})
|
|
user.GetSubSet(subSetType == 2, fmt.Sprint(userId), subSet)
|
|
user.GetSubSet(subSetType == 2, fmt.Sprint(userId), subSet)
|
|
user.Entniche.IsNew = Ents[entId].IsNew
|
|
user.Entniche.IsNew = Ents[entId].IsNew
|
|
@@ -259,7 +263,7 @@ func (e *EntMatch) LoadMySubSet(allSubSet *mr.PayUser, title_pjob, detail_pjob *
|
|
UserId: duk,
|
|
UserId: duk,
|
|
},
|
|
},
|
|
}
|
|
}
|
|
- if child_subSet["o_area"] == nil && e.AllBehavior[child_user.Id].Area != "" {
|
|
|
|
|
|
+ if child_subSet["o_area"] == nil && e.AllBehavior[child_user.Id] != nil && e.AllBehavior[child_user.Id].Area != "" {
|
|
child_subSet["o_area"] = map[string]interface{}{
|
|
child_subSet["o_area"] = map[string]interface{}{
|
|
e.AllBehavior[child_user.Id].Area: map[string]interface{}{},
|
|
e.AllBehavior[child_user.Id].Area: map[string]interface{}{},
|
|
}
|
|
}
|