1.优化代运营
This commit is contained in:
parent
5355352f07
commit
cb4a64f030
|
@ -54,9 +54,11 @@ namespace ProductClient
|
||||||
//var thread = TimerTask.NewTimer<MonitorThread>(60) as MonitorThread;
|
//var thread = TimerTask.NewTimer<MonitorThread>(60) as MonitorThread;
|
||||||
|
|
||||||
EventClient.DyyNoticeEvent += EventClient_DyyNoticeEvent;
|
EventClient.DyyNoticeEvent += EventClient_DyyNoticeEvent;
|
||||||
|
|
||||||
//EventClient_DyyNoticeEvent(null, new 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)
|
catch (Exception ex)
|
||||||
|
@ -110,7 +112,7 @@ namespace ProductClient
|
||||||
var json = e.Data;
|
var json = e.Data;
|
||||||
//{"Id":"122522636742819840","TaskId":"122522636742819840","IsGoods":true}
|
//{"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 jObj = JObject.Parse(json);
|
||||||
var taskId = jObj["TaskId"]?.Value<string>();
|
var taskId = jObj["TaskId"]?.Value<string>();
|
||||||
|
@ -126,7 +128,12 @@ namespace ProductClient
|
||||||
|
|
||||||
//发送任务来源Id
|
//发送任务来源Id
|
||||||
var collectionSourceId = jObj["CollectionSourceId"]?.Value<string>();
|
var collectionSourceId = jObj["CollectionSourceId"]?.Value<string>();
|
||||||
|
|
||||||
|
if (Config.sourceId == null)
|
||||||
|
{
|
||||||
|
Config.sourceId = "129505086429724672";
|
||||||
|
}
|
||||||
|
|
||||||
if (Config.sourceId != collectionSourceId)
|
if (Config.sourceId != collectionSourceId)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -74,9 +74,7 @@ namespace ProductClient
|
||||||
{
|
{
|
||||||
Class1.Config.sourceId = "129505086429724672";
|
Class1.Config.sourceId = "129505086429724672";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var collectionSources = GetCollectionSourceAll();
|
var collectionSources = GetCollectionSourceAll();
|
||||||
if (collectionSources != null)
|
if (collectionSources != null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -71,8 +71,7 @@ namespace CircleFriendsTools
|
||||||
{
|
{
|
||||||
var item = _item;
|
var item = _item;
|
||||||
|
|
||||||
if (Class1.Config.transpond_send_usernames.Count != 0 &&
|
if (Class1.Config.transpond_send_usernames.Count != 0 && !Class1.Config.transpond_send_usernames.Contains(item.WeixinHao))
|
||||||
!Class1.Config.transpond_send_usernames.Contains(item.WeixinHao))
|
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue