This commit is contained in:
xieshen 2020-11-18 16:38:36 +08:00
commit 21c5864fff
1 changed files with 1 additions and 1 deletions

View File

@ -24,6 +24,6 @@ def process_notify_task():
if hour < 8 or hour > 20:
return
print('============', phone, n.type)
SMSNotifyRecord.objects.create(phone=phone)
SMSNotifyRecord.objects.create(phone=phone, notice_id=n.id)
sent_sms_notify(phone, n.type)
print('end task', time.process_time() - start)