Commit e70ec638 authored by lixiaofang's avatar lixiaofang

add

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