22 lines
696 B
Python
22 lines
696 B
Python
from utils.ali_client import create_client,get_listtask,get_task_detail
|
||
import json
|
||
from utils.log import Log
|
||
|
||
|
||
if __name__ == '__main__':
|
||
# 创建一个新的Log实例,确保每天创建一个新的日志文件
|
||
log = Log().getlog()
|
||
|
||
aliclient=create_client('xianxia');
|
||
|
||
# response_dict=get_listtask(aliclient,39023);
|
||
# response = json.loads(response_dict)
|
||
# print(response_dict)
|
||
# print('1111111111111111111111')
|
||
# print(response['body'])
|
||
# print(response['body']['PagingInfo']['TotalCount'])
|
||
|
||
# response_dict = get_task_detail(aliclient, 1023194720,'Dev');
|
||
response_dict = get_task_detail(aliclient, 1023194720,'Prod');
|
||
log.info(response_dict)
|