You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
def format_goods(_data): |
|
goods_list = [] |
|
for cate in _data['res']['data']: |
|
for g in cate['goods']: |
|
goods_list.append(g) |
|
return {'res': {'status': _data['res']['status'], 'data': goods_list}}
|
|
|