Commit cb595b25 authored by 段英荣's avatar 段英荣

modify

parent 4fd59c0c
......@@ -28,7 +28,7 @@ class UserTransfer(object):
res["is_recommend"] = is_recommend
res["is_shadow"] = is_shadow
except:
logging.error("duan test,catch exception,err_msg:%s" % traceback.format_exc())
#logging.error("duan test,catch exception,err_msg:%s" % traceback.format_exc())
res["is_recommend"] = False
res["is_shadow"] = False
......@@ -46,11 +46,19 @@ class UserTransfer(object):
res["update_time"] = tzlc_update_time
res["update_time_val"] = int(time.mktime(tzlc_update_time.timetuple()))
res["tag_list"] = instance.get_user_tag_id_list()
res["attention_user_id_list"] = instance.get_follow_user_id_list()
res["attention_group_id_list"] = instance.get_attention_group_id_list()
res["pick_user_id_list"] = instance.get_pick_user_id_list()
res["same_group_user_id_list"] = instance.get_same_group_user_id_list()
try:
res["tag_list"] = instance.get_user_tag_id_list()
res["attention_user_id_list"] = instance.get_follow_user_id_list()
res["attention_group_id_list"] = instance.get_attention_group_id_list()
res["pick_user_id_list"] = instance.get_pick_user_id_list()
res["same_group_user_id_list"] = instance.get_same_group_user_id_list()
except:
res["tag_list"] = []
res["attention_user_id_list"] = []
res["attention_group_id_list"] = []
res["pick_user_id_list"] = []
res["same_group_user_id_list"] = []
return res
except:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment