|
@@ -189,7 +189,13 @@ class feiyuyueduProcess(simpleProcess):
|
|
return base_url.format('getBookList')
|
|
return base_url.format('getBookList')
|
|
|
|
|
|
def bid_list_result(self, response):
|
|
def bid_list_result(self, response):
|
|
- return simpleProcess.bid_list_result(response=response)
|
|
|
|
|
|
+ result = json.loads(response.text)
|
|
|
|
+ if result is None or result.get('data') is None:
|
|
|
|
+ return []
|
|
|
|
+ result_list = []
|
|
|
|
+ for item in result['data']:
|
|
|
|
+ result_list.append({'id': item['id']})
|
|
|
|
+ return result_list
|
|
|
|
|
|
def get_book_info_url(self, bid):
|
|
def get_book_info_url(self, bid):
|
|
return base_url.format('getBookInfo') + '?bookid={}'.format(bid)
|
|
return base_url.format('getBookInfo') + '?bookid={}'.format(bid)
|