add dingding robot
This commit is contained in:
parent
0c0d729006
commit
cd827be547
|
@ -36,8 +36,8 @@ class Rotbot:
|
|||
params=ujson.dumps(params)
|
||||
# 构造path
|
||||
path='/'
|
||||
timestamp=DateTimeTool.getNowTimeStampWithMillisecond()
|
||||
if self.secret_key:
|
||||
timestamp = DateTimeTool.getNowTimeStampWithMillisecond()
|
||||
path='×tamp={}&sign={}'.format(timestamp,self._generator_sign(timestamp,self.secret_key))
|
||||
# 发送文本
|
||||
httpResponseResult=self.doRequest.post_with_form(path,params)
|
||||
|
@ -55,8 +55,8 @@ class Rotbot:
|
|||
params = ujson.dumps(params)
|
||||
# 构造path
|
||||
path = '/'
|
||||
timestamp = DateTimeTool.getNowTimeStampWithMillisecond()
|
||||
if self.secret_key:
|
||||
timestamp = DateTimeTool.getNowTimeStampWithMillisecond()
|
||||
path = '×tamp={}&sign={}'.format(timestamp, self._generator_sign(timestamp, self.secret_key))
|
||||
# 发送文本
|
||||
httpResponseResult = self.doRequest.post_with_form(path, params)
|
||||
|
|
Loading…
Reference in New Issue