Explorar o código

标签逻辑入库

lichangdong hai 1 semana
pai
achega
9e4e182148

+ 1 - 1
internal/service/MessageHandlers/contact_Label_info_notice.go

@@ -82,7 +82,7 @@ func (f *ContactLabelInfoNotice) Handle(ctx context.Context, msg *wechat_ws.MsgJ
 				SetStatus(1).
 				SetStatus(1).
 				SetOrganizationID(wxInfo.OrganizationID).
 				SetOrganizationID(wxInfo.OrganizationID).
 				SetFrom(2).
 				SetFrom(2).
-				SetMode(2).
+				SetMode(1).
 				SetConditions(string(json.RawMessage(`{}`))).
 				SetConditions(string(json.RawMessage(`{}`))).
 				SetCreatedAt(time.Now()).
 				SetCreatedAt(time.Now()).
 				SetUpdatedAt(time.Now()),
 				SetUpdatedAt(time.Now()),

+ 2 - 2
internal/service/MessageHandlers/friend_push_notice.go

@@ -153,8 +153,8 @@ func (f *FriendPushNoticeTypeHandler) Handle(ctx context.Context, msg *wechat_ws
 		for _, remoteLabel := range LabelLogs {
 		for _, remoteLabel := range LabelLogs {
 			labelInfo, err := svcCtx.DB.Label.Query().Where(
 			labelInfo, err := svcCtx.DB.Label.Query().Where(
 				label.NameEQ(remoteLabel.LabelName),
 				label.NameEQ(remoteLabel.LabelName),
-				label.FromEQ(2),
-				label.ModeEQ(2),
+				//label.FromEQ(2),
+				//label.ModeEQ(2),
 				label.OrganizationID(currentOrgID),
 				label.OrganizationID(currentOrgID),
 			).Only(ctx)
 			).Only(ctx)
 			if err != nil || ent.IsNotFound(err) {
 			if err != nil || ent.IsNotFound(err) {