def run_proc(self, body):
try:
if body.has_key('client_os_type'):
pack_id = None
query_param = ''
if body.has_key('pack_id'):
pack_id = body['pack_id']
if body.has_key('query_param'):
query_param = body['query_param']
resp = Himalaya().get_recommendation(body['client_os_type'], pack_id, query_param)
self.finish(resp)
else:
tmp_dict = {'code': -1, "error": "need clent os type param"}
self.finish(json.dumps(tmp_dict))
except Exception, Argument:
log.error(Argument)
self.finish(Argument)
评论列表
文章目录