|
@@ -300,8 +300,8 @@ namespace TEAMModelOS.FunctionV4
|
|
#endif
|
|
#endif
|
|
var messageSurveyEnd = new ServiceBusMessage(new { id = tdata.id, progress = "finish", code = tdata.code }.ToJsonString());
|
|
var messageSurveyEnd = new ServiceBusMessage(new { id = tdata.id, progress = "finish", code = tdata.code }.ToJsonString());
|
|
messageSurveyEnd.ApplicationProperties.Add("name", "Survey");
|
|
messageSurveyEnd.ApplicationProperties.Add("name", "Survey");
|
|
- string pkey = string.Format("{0}{1}{2}", survey.code, "-", "pending");
|
|
|
|
- await table.DeleteSingle<ChangeRecord>(pkey, tdata.id);
|
|
|
|
|
|
+ /* string pkey = string.Format("{0}{1}{2}", survey.code, "-", "pending");
|
|
|
|
+ await table.DeleteSingle<ChangeRecord>(pkey, tdata.id);*/
|
|
if (changeRecords.Count > 0)
|
|
if (changeRecords.Count > 0)
|
|
{
|
|
{
|
|
long end = await _serviceBus.GetServiceBusClient().SendScheduleMessageAsync(Environment.GetEnvironmentVariable("Azure:ServiceBus:ActiveTask"), messageSurveyEnd, DateTimeOffset.FromUnixTimeMilliseconds(tdata.endTime));
|
|
long end = await _serviceBus.GetServiceBusClient().SendScheduleMessageAsync(Environment.GetEnvironmentVariable("Azure:ServiceBus:ActiveTask"), messageSurveyEnd, DateTimeOffset.FromUnixTimeMilliseconds(tdata.endTime));
|
|
@@ -475,8 +475,8 @@ namespace TEAMModelOS.FunctionV4
|
|
_azureRedis.GetRedisClient(8).KeyDelete($"Survey:Submit:{survey.id}");
|
|
_azureRedis.GetRedisClient(8).KeyDelete($"Survey:Submit:{survey.id}");
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
- string pk = string.Format("{0}{1}{2}", survey.code, "-", "going");
|
|
|
|
- await table.DeleteSingle<ChangeRecord>(pk, tdata.id);
|
|
|
|
|
|
+ /*string pk = string.Format("{0}{1}{2}", survey.code, "-", "going");
|
|
|
|
+ await table.DeleteSingle<ChangeRecord>(pk, tdata.id);*/
|
|
//更新结束状态
|
|
//更新结束状态
|
|
//data.progress = "finish";
|
|
//data.progress = "finish";
|
|
//if (survey.scope .Equals("school"))
|
|
//if (survey.scope .Equals("school"))
|