1
This commit is contained in:
parent
230fe7df11
commit
c6df76b377
@ -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'] + '×tamp=' + 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))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user