فهرست منبع

fix:修改导入和群发任务状态字段

jimmyyem 1 ماه پیش
والد
کامیت
c11f2692bc

+ 1 - 1
internal/logic/batch_msg/create_whatcapp_batch_msg_logic.go

@@ -138,7 +138,7 @@ func (l *CreateWhatcappBatchMsgLogic) CreateWhatcappBatchMsg(req *types.BatchMsg
 
 	_, err = tx.BatchMsg.Create().
 		SetNotNilBatchNo(&batchNo).
-		SetStatus(0).
+		SetStatus(2).
 		//SetNotNilFromwxid(req.Fromwxid).
 		SetNotNilMsg(req.Msg).
 		SetNotNilTag(&tag).

+ 1 - 1
internal/logic/contact/import_whatsapp_contact_logic.go

@@ -113,7 +113,7 @@ func (l *ImportWhatsappContactLogic) ImportWhatsappContact(req *types.ImportWhat
 
 				newLabel, err := l.svcCtx.DB.Label.Create().
 					SetName(value).
-					SetType(5).
+					SetType(1).
 					SetNotNilConditions(&conditions).
 					SetOrganizationID(organizationId).
 					Save(l.ctx)