Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
ops
Overview
Overview
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangwei
ops
Commits
a8ebd961
Commit
a8ebd961
authored
Apr 05, 2017
by
TingSong-Syu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
:q
parent
c86808b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
check_pay_failure.py
cms_log/cms_log/check_pay_failure.py
+2
-3
check_pay_stat.py
cms_log/cms_log/check_pay_stat.py
+2
-3
No files found.
cms_log/cms_log/check_pay_failure.py
View file @
a8ebd961
...
...
@@ -8,6 +8,7 @@ import sys
reload
(
sys
)
sys
.
setdefaultencoding
(
'utf8'
)
#测试环境
'''
host = "192.168.2.26"
port = 3306
user = "root"
...
...
@@ -18,7 +19,6 @@ host = "mysql.in.shenlancity.com"
port
=
3306
user
=
"summer_hill"
password
=
"xytXdnZMGr4B7BVd"
'''
def
action
(
failure_count
):
config_infos
=
cms_config
.
load_config_check_pay_failure
()
...
...
@@ -58,4 +58,4 @@ order by
#print("[sum]:%s,[user_id]:%s,[truename]:%s") % (line[0], line[1], line[2])
if
line
[
0
]
>
1
:
count
=
count
+
1
print
(
count
)
\ No newline at end of file
print
(
count
)
cms_log/cms_log/check_pay_stat.py
View file @
a8ebd961
...
...
@@ -8,6 +8,7 @@ from util import cms_config
import
sys
#测试环境
'''
host = "192.168.2.26"
port = 3306
user = "root"
...
...
@@ -18,7 +19,6 @@ host = "mysql.in.shenlancity.com"
port
=
3306
user
=
"summer_hill"
password
=
"xytXdnZMGr4B7BVd"
'''
def
get_interval
(
db_time
):
curtime
=
times
.
currsecs
()
...
...
@@ -59,4 +59,4 @@ if __name__ == '__main__':
#action(interval)
# else:
# interval=0
# action(interval)
\ No newline at end of file
# action(interval)
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