Commit e70ec638 authored by lixiaofang's avatar lixiaofang

add

parent 62479ea5
...@@ -78,6 +78,7 @@ def principal_online_comment1(): ...@@ -78,6 +78,7 @@ def principal_online_comment1():
# 判断是不是编辑标签 # 判断是不是编辑标签
edit_judge = get_pictorial_tag_by_id(i[0]) edit_judge = get_pictorial_tag_by_id(i[0])
if edit_judge: if edit_judge:
rand_tag_id = random.randint(0, len(edit_judge) - 1)
comment = get_pictorial_comment() comment = get_pictorial_comment()
else: else:
comment = get_pictorial_comment() comment = get_pictorial_comment()
...@@ -91,6 +92,7 @@ def principal_online_comment1(): ...@@ -91,6 +92,7 @@ def principal_online_comment1():
cook = logins(majia_user_id) cook = logins(majia_user_id)
edit_judge = get_pictorial_tag_by_id(i[0]) edit_judge = get_pictorial_tag_by_id(i[0])
if edit_judge: if edit_judge:
rand_tag_id = random.randint(0, len(edit_judge) - 1)
comment = get_pictorial_comment() comment = get_pictorial_comment()
else: else:
comment = get_pictorial_comment() comment = get_pictorial_comment()
......
...@@ -83,6 +83,7 @@ def true_comment_one(): ...@@ -83,6 +83,7 @@ def true_comment_one():
face_judge = topic_has_image(i[1]) face_judge = topic_has_image(i[1])
if face_judge: if face_judge:
comment = get_face_comment() comment = get_face_comment()
#原始评论
else: else:
comment = get_comment() comment = get_comment()
......
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