This commit is contained in:
aozhiwei 2019-02-01 19:28:41 +08:00
parent 230fe7df11
commit c6df76b377

View File

@ -1,5 +1,4 @@
#coding utf8
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import json
@ -29,7 +28,7 @@ def getDaySeconds(time_val, incdays):
def sendNotify(conf, sendtime):
try:
print('sendNotify')
print('sendNotify start')
params = {'key' : 'kingsome'}
secret = 'fc38349c5d084e920925e614c420be9f'
timestamp = time.time()
@ -37,6 +36,7 @@ def sendNotify(conf, sendtime):
url = conf['notify_url'] + '&timestamp=' + str(timestamp) + '&sign=' + md5signstr
req = urllib.request.Request(url)
data = urllib.request.urlopen(req).read()
print('sendNotify end')
except Exception as e:
print('sendNotifu error: ' + str(e))