Browse Source

feat:企业免费用户初始化订阅数据

wangchuanjin 2 years ago
parent
commit
e1fa22afed
1 changed files with 4 additions and 4 deletions
  1. 4 4
      jyBXSubscribe/rpc/model/push.go

+ 4 - 4
jyBXSubscribe/rpc/model/push.go

@@ -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: