Conditions | 3 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | from lib.wechatutil.appinfo import AppInfo |
||
6 | def getapplist(factory): |
||
7 | response = factory.get(apiUrl, None) |
||
8 | if response['errcode'] != 0: |
||
9 | factory.refreshtoken() |
||
10 | response = factory.get(apiUrl, None) |
||
11 | applist = [AppInfo(app) for app in response['agentlist']] |
||
|
|||
12 | return response['errcode'], applist, response['errmsg'] |
||
13 |