Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpha
physical
Commits
2b36bf79
Commit
2b36bf79
authored
5 years ago
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
930ee89a
master
deploy/like-prod
deploy/like-stage
deploy/like-test
like-pre/r01
test
2 merge requests
!532
Wsy3
,
!490
add
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
35 deletions
+50
-35
reply_comment1.py
vest/reply_answer/reply_comment1.py
+10
-7
reply_comment2.py
vest/reply_answer/reply_comment2.py
+10
-7
reply_comment3.py
vest/reply_answer/reply_comment3.py
+10
-7
reply_comment5.py
vest/reply_answer/reply_comment5.py
+10
-7
reply_comment7.py
vest/reply_answer/reply_comment7.py
+10
-7
No files found.
vest/reply_answer/reply_comment1.py
View file @
2b36bf79
...
@@ -10,13 +10,16 @@ def reply_comment1():
...
@@ -10,13 +10,16 @@ def reply_comment1():
redis_key1
=
"cybertron:set_reply_id:one"
redis_key1
=
"cybertron:set_reply_id:one"
redis_client
=
set_reply_to_redis
()
redis_client
=
set_reply_to_redis
()
have_reply1
=
redis_client
.
get
(
redis_key1
)
have_reply1
=
redis_client
.
get
(
redis_key1
)
result
=
json
.
loads
(
str
(
have_reply1
,
encoding
=
"utf-8"
))
if
have_reply1
==
None
:
if
result
:
pass
for
item
in
result
:
else
:
majia_user_id
=
get_majia_reply
(
item
[
"majia_user_id"
])
result
=
json
.
loads
(
str
(
have_reply1
,
encoding
=
"utf-8"
))
cook
=
logins
(
majia_user_id
)
if
result
:
reply2
(
cook
,
item
[
"topic_id"
],
item
[
"answer"
],
item
[
"id"
])
for
item
in
result
:
redis_client
.
delete
(
redis_key1
)
majia_user_id
=
get_majia_reply
(
item
[
"majia_user_id"
])
cook
=
logins
(
majia_user_id
)
reply2
(
cook
,
item
[
"topic_id"
],
item
[
"answer"
],
item
[
"id"
])
redis_client
.
delete
(
redis_key1
)
except
:
except
:
logging_exception
()
logging_exception
()
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
This diff is collapsed.
Click to expand it.
vest/reply_answer/reply_comment2.py
View file @
2b36bf79
...
@@ -10,13 +10,16 @@ def reply_comment2():
...
@@ -10,13 +10,16 @@ def reply_comment2():
redis_key1
=
"cybertron:set_reply_id:two"
redis_key1
=
"cybertron:set_reply_id:two"
redis_client
=
set_reply_to_redis
()
redis_client
=
set_reply_to_redis
()
have_reply1
=
redis_client
.
get
(
redis_key1
)
have_reply1
=
redis_client
.
get
(
redis_key1
)
result
=
json
.
loads
(
str
(
have_reply1
,
encoding
=
"utf-8"
))
if
have_reply1
==
None
:
if
result
:
pass
for
item
in
result
:
else
:
majia_user_id
=
get_majia_reply
(
item
[
"majia_user_id"
])
result
=
json
.
loads
(
str
(
have_reply1
,
encoding
=
"utf-8"
))
cook
=
logins
(
majia_user_id
)
if
result
:
reply2
(
cook
,
item
[
"topic_id"
],
item
[
"answer"
],
item
[
"id"
])
for
item
in
result
:
redis_client
.
delete
(
redis_key1
)
majia_user_id
=
get_majia_reply
(
item
[
"majia_user_id"
])
cook
=
logins
(
majia_user_id
)
reply2
(
cook
,
item
[
"topic_id"
],
item
[
"answer"
],
item
[
"id"
])
redis_client
.
delete
(
redis_key1
)
except
:
except
:
logging_exception
()
logging_exception
()
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
This diff is collapsed.
Click to expand it.
vest/reply_answer/reply_comment3.py
View file @
2b36bf79
...
@@ -10,13 +10,16 @@ def reply_comment3():
...
@@ -10,13 +10,16 @@ def reply_comment3():
redis_key1
=
"cybertron:set_reply_id:three"
redis_key1
=
"cybertron:set_reply_id:three"
redis_client
=
set_reply_to_redis
()
redis_client
=
set_reply_to_redis
()
have_reply1
=
redis_client
.
get
(
redis_key1
)
have_reply1
=
redis_client
.
get
(
redis_key1
)
result
=
json
.
loads
(
str
(
have_reply1
,
encoding
=
"utf-8"
))
if
have_reply1
==
None
:
if
result
:
pass
for
item
in
result
:
else
:
majia_user_id
=
get_majia_reply
(
item
[
"majia_user_id"
])
result
=
json
.
loads
(
str
(
have_reply1
,
encoding
=
"utf-8"
))
cook
=
logins
(
majia_user_id
)
if
result
:
reply2
(
cook
,
item
[
"topic_id"
],
item
[
"answer"
],
item
[
"id"
])
for
item
in
result
:
redis_client
.
delete
(
redis_key1
)
majia_user_id
=
get_majia_reply
(
item
[
"majia_user_id"
])
cook
=
logins
(
majia_user_id
)
reply2
(
cook
,
item
[
"topic_id"
],
item
[
"answer"
],
item
[
"id"
])
redis_client
.
delete
(
redis_key1
)
except
:
except
:
logging_exception
()
logging_exception
()
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
This diff is collapsed.
Click to expand it.
vest/reply_answer/reply_comment5.py
View file @
2b36bf79
...
@@ -10,13 +10,16 @@ def reply_comment5():
...
@@ -10,13 +10,16 @@ def reply_comment5():
redis_key1
=
"cybertron:set_reply_id:five"
redis_key1
=
"cybertron:set_reply_id:five"
redis_client
=
set_reply_to_redis
()
redis_client
=
set_reply_to_redis
()
have_reply1
=
redis_client
.
get
(
redis_key1
)
have_reply1
=
redis_client
.
get
(
redis_key1
)
result
=
json
.
loads
(
str
(
have_reply1
,
encoding
=
"utf-8"
))
if
have_reply1
==
None
:
if
result
:
pass
for
item
in
result
:
else
:
majia_user_id
=
get_majia_reply
(
item
[
"majia_user_id"
])
result
=
json
.
loads
(
str
(
have_reply1
,
encoding
=
"utf-8"
))
cook
=
logins
(
majia_user_id
)
if
result
:
reply2
(
cook
,
item
[
"topic_id"
],
item
[
"answer"
],
item
[
"id"
])
for
item
in
result
:
redis_client
.
delete
(
redis_key1
)
majia_user_id
=
get_majia_reply
(
item
[
"majia_user_id"
])
cook
=
logins
(
majia_user_id
)
reply2
(
cook
,
item
[
"topic_id"
],
item
[
"answer"
],
item
[
"id"
])
redis_client
.
delete
(
redis_key1
)
except
:
except
:
logging_exception
()
logging_exception
()
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
This diff is collapsed.
Click to expand it.
vest/reply_answer/reply_comment7.py
View file @
2b36bf79
...
@@ -10,13 +10,16 @@ def reply_comment7():
...
@@ -10,13 +10,16 @@ def reply_comment7():
redis_key1
=
"cybertron:set_reply_id:seven"
redis_key1
=
"cybertron:set_reply_id:seven"
redis_client
=
set_reply_to_redis
()
redis_client
=
set_reply_to_redis
()
have_reply1
=
redis_client
.
get
(
redis_key1
)
have_reply1
=
redis_client
.
get
(
redis_key1
)
result
=
json
.
loads
(
str
(
have_reply1
,
encoding
=
"utf-8"
))
if
have_reply1
==
None
:
if
result
:
pass
for
item
in
result
:
else
:
majia_user_id
=
get_majia_reply
(
item
[
"majia_user_id"
])
result
=
json
.
loads
(
str
(
have_reply1
,
encoding
=
"utf-8"
))
cook
=
logins
(
majia_user_id
)
if
result
:
reply2
(
cook
,
item
[
"topic_id"
],
item
[
"answer"
],
item
[
"id"
])
for
item
in
result
:
redis_client
.
delete
(
redis_key1
)
majia_user_id
=
get_majia_reply
(
item
[
"majia_user_id"
])
cook
=
logins
(
majia_user_id
)
reply2
(
cook
,
item
[
"topic_id"
],
item
[
"answer"
],
item
[
"id"
])
redis_client
.
delete
(
redis_key1
)
except
:
except
:
logging_exception
()
logging_exception
()
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment