|
@@ -1063,11 +1063,11 @@ func (s *subscribePush) listManager(spqp *SubPushQueryParam, list []map[string]i
|
|
|
length := len(list)
|
|
|
resultList = make([]*bxsubscribe.SubscribeInfo, length)
|
|
|
pushInsert := []interface{}{}
|
|
|
- product := ""
|
|
|
+ var product interface{}
|
|
|
if spqp.UserType == SubVipFlag {
|
|
|
- product = "1"
|
|
|
+ product = 1
|
|
|
} else if spqp.UserType == MemberFlag {
|
|
|
- product = "2"
|
|
|
+ product = 2
|
|
|
}
|
|
|
for i := length - 1; i >= 0; i-- {
|
|
|
v := list[i]
|
|
@@ -1107,7 +1107,7 @@ func (s *subscribePush) listManager(spqp *SubPushQueryParam, list []map[string]i
|
|
|
pushInsert = append(pushInsert, common.InterfaceToStr(infoid), matchkey, now, area, city, buyerclass, toptype, subtype, subscopeclassStr, budget, bidamount, attachment_count)
|
|
|
switch s.ModuleFlag {
|
|
|
case EntnicheFlag:
|
|
|
- pushInsert = append(pushInsert, entid, deptid, entUserId, 1, product)
|
|
|
+ pushInsert = append(pushInsert, entUserId, entid, deptid, 1, product)
|
|
|
case MemberFlag:
|
|
|
pushInsert = append(pushInsert, common.InterfaceToStr(spqp.NewUserId))
|
|
|
case SubVipFlag:
|