1
This commit is contained in:
parent
230fe7df11
commit
c6df76b377
@ -1,5 +1,4 @@
|
|||||||
#coding utf8
|
# -*- coding: utf-8 -*-
|
||||||
#!/usr/bin/python
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
@ -29,7 +28,7 @@ def getDaySeconds(time_val, incdays):
|
|||||||
|
|
||||||
def sendNotify(conf, sendtime):
|
def sendNotify(conf, sendtime):
|
||||||
try:
|
try:
|
||||||
print('sendNotify')
|
print('sendNotify start')
|
||||||
params = {'key' : 'kingsome'}
|
params = {'key' : 'kingsome'}
|
||||||
secret = 'fc38349c5d084e920925e614c420be9f'
|
secret = 'fc38349c5d084e920925e614c420be9f'
|
||||||
timestamp = time.time()
|
timestamp = time.time()
|
||||||
@ -37,6 +36,7 @@ def sendNotify(conf, sendtime):
|
|||||||
url = conf['notify_url'] + '×tamp=' + str(timestamp) + '&sign=' + md5signstr
|
url = conf['notify_url'] + '×tamp=' + str(timestamp) + '&sign=' + md5signstr
|
||||||
req = urllib.request.Request(url)
|
req = urllib.request.Request(url)
|
||||||
data = urllib.request.urlopen(req).read()
|
data = urllib.request.urlopen(req).read()
|
||||||
|
print('sendNotify end')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print('sendNotifu error: ' + str(e))
|
print('sendNotifu error: ' + str(e))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user