|
@@ -382,12 +382,12 @@ namespace DataSharing.Host.Controllers.Police110
|
|
|
await InitRawData("service/api/dcjt/12345To110/chainAlarm", base64String, jsonRes, sendData?.AlarmReceiptNumber);
|
|
|
}
|
|
|
bool bRun = true;
|
|
|
- if (string.IsNullOrEmpty(sendData.StartDate) || !IsDate(sendData.StartDate))
|
|
|
+ if (!string.IsNullOrEmpty(sendData.StartDate) || !IsDate(sendData.StartDate))
|
|
|
{
|
|
|
bRun = false;
|
|
|
apiR = DCJTDeResponse<string>.Failed(null, "【创建开始时间】不是日期格式 yyyy-MM-dd HH:mm:ss");
|
|
|
}
|
|
|
- if (string.IsNullOrEmpty(sendData.EndDate) || !IsDate(sendData.EndDate))
|
|
|
+ if (!string.IsNullOrEmpty(sendData.EndDate) || !IsDate(sendData.EndDate))
|
|
|
{
|
|
|
bRun = false;
|
|
|
apiR = DCJTDeResponse<string>.Failed(null, "【创建结束时间】不是日期格式 yyyy-MM-dd HH:mm:ss");
|