diff --git a/tools/kefu_robot.py b/tools/kefu_robot.py index cbccaaa..0607511 100644 --- a/tools/kefu_robot.py +++ b/tools/kefu_robot.py @@ -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))