1.优化代运营

This commit is contained in:
老道 2023-01-29 18:07:38 +08:00
parent 5355352f07
commit cb4a64f030
3 changed files with 11 additions and 7 deletions

View File

@ -54,9 +54,11 @@ namespace ProductClient
//var thread = TimerTask.NewTimer<MonitorThread>(60) as MonitorThread;
EventClient.DyyNoticeEvent += EventClient_DyyNoticeEvent;
//EventClient_DyyNoticeEvent(null, new DyyNoticeEvent()
//{
// Data = "{\"Id\":\"122522636742819840\",\"TaskId\":\"122522636742819840\",\"IsGoods\":true}"
// //Data = "{\"Id\":\"122522636742819840\",\"TaskId\":\"122522636742819840\",\"IsGoods\":true}"
// Data = "{\"TaskId\":\"142515582485397504\",\"CollectionSourceId\":\"129505086429724672\",\"IsGoods\":true}"
//});
}
catch (Exception ex)
@ -110,7 +112,7 @@ namespace ProductClient
var json = e.Data;
//{"Id":"122522636742819840","TaskId":"122522636742819840","IsGoods":true}
//var json = "{\"TaskId\":\"133038429393911808\",\"CollectionSourceId\":\"129505086429724672\",\"IsGoods\":true}";
//var json = "{\"TaskId\":\"142515582485397504\",\"CollectionSourceId\":\"129505086429724672\",\"IsGoods\":true}";
var jObj = JObject.Parse(json);
var taskId = jObj["TaskId"]?.Value<string>();
@ -126,7 +128,12 @@ namespace ProductClient
//发送任务来源Id
var collectionSourceId = jObj["CollectionSourceId"]?.Value<string>();
if (Config.sourceId == null)
{
Config.sourceId = "129505086429724672";
}
if (Config.sourceId != collectionSourceId)
{
return;

View File

@ -74,9 +74,7 @@ namespace ProductClient
{
Class1.Config.sourceId = "129505086429724672";
}
var collectionSources = GetCollectionSourceAll();
if (collectionSources != null)
{

View File

@ -71,8 +71,7 @@ namespace CircleFriendsTools
{
var item = _item;
if (Class1.Config.transpond_send_usernames.Count != 0 &&
!Class1.Config.transpond_send_usernames.Contains(item.WeixinHao))
if (Class1.Config.transpond_send_usernames.Count != 0 && !Class1.Config.transpond_send_usernames.Contains(item.WeixinHao))
{
continue;
}