Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmp_epay
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
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhenfei.zhang
fmp_epay
Commits
215e58a6
Commit
215e58a6
authored
Aug 29, 2017
by
Carwyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 清理历史交易数据库时,可能会在线程中抛异常问题
parent
451f4ce6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
fmp_database.cpp
+6
-1
fmp_epay_p.cpp
+3
-3
version.h
+1
-1
No files found.
fmp_database.cpp
View file @
215e58a6
...
@@ -9,7 +9,12 @@
...
@@ -9,7 +9,12 @@
FMPDataBase
::
FMPDataBase
(
QString
dbname
,
QString
connectname
,
QObject
*
parent
)
:
QObject
(
parent
)
FMPDataBase
::
FMPDataBase
(
QString
dbname
,
QString
connectname
,
QObject
*
parent
)
:
QObject
(
parent
)
{
{
_db
=
QSqlDatabase
::
addDatabase
(
"QSQLITE"
,
connectname
);
if
(
QSqlDatabase
::
contains
(
connectname
))
{
_db
=
QSqlDatabase
::
addDatabase
(
"QSQLITE"
,
connectname
);
}
else
{
_db
=
QSqlDatabase
::
database
(
connectname
);
}
_db
.
setDatabaseName
(
dbname
);
_db
.
setDatabaseName
(
dbname
);
_isopen
=
_db
.
open
();
_isopen
=
_db
.
open
();
}
}
...
...
fmp_epay_p.cpp
View file @
215e58a6
...
@@ -197,10 +197,10 @@ void FMPePayPrivate::Init()
...
@@ -197,10 +197,10 @@ void FMPePayPrivate::Init()
void
FMPePayPrivate
::
clearorder
()
void
FMPePayPrivate
::
clearorder
()
{
{
Q_Q
(
FMPePay
);
QtConcurrent
::
run
(
[
&
,
this
]()
QtConcurrent
::
run
(
[
q
,
this
]()
{
{
Q_Q
(
FMPePay
);
FMPDataBase
db
(
q
->
_databasename
,
QString
(
"fmp_pay_clean"
))
;
FMPDataBase
db
(
q
->
_databasename
,
QString
(
"fmp_pay_clean"
))
;
QDateTime
date
=
QDateTime
::
currentDateTime
();
QDateTime
date
=
QDateTime
::
currentDateTime
();
...
...
version.h
View file @
215e58a6
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
#define VER_MINOR 1
#define VER_MINOR 1
#define VER_REVISION 0
#define VER_REVISION 0
#define VER_BUILD 1
4
#define VER_BUILD 1
6
//! Convert version numbers to string
//! Convert version numbers to string
#define _STR(S) #S
#define _STR(S) #S
...
...
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