Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmp_vip
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_vip
Commits
3434814d
Commit
3434814d
authored
Feb 23, 2018
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 修复非码支付和退款金额错误Bug。 2. 修改数据库文件名。
parent
d6ad6b8e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
4 deletions
+23
-4
fmvip/db/database.h
+7
-1
fmvip/task/taskqrpay.cpp
+3
-1
fmvip/task/taskqrrefund.cpp
+1
-1
fmvip/windows/forms/fmviporder.ui
+11
-0
version.h
+1
-1
No files found.
fmvip/db/database.h
View file @
3434814d
...
...
@@ -12,6 +12,12 @@
#include "item.h"
#include <QDebug>
#if defined(FM_TEST)
#define DBFileName "Test.db"
#else
#define DBFileName "FreemudPOS.db"
#endif
#if defined(DATABASE_MYSQL)
# include <odb/mysql/database.hxx>
#elif defined(DATABASE_SQLITE)
...
...
@@ -142,7 +148,7 @@ public:
private
:
DBConnect
()
:
_dbName
(
"Test.db"
)
_dbName
(
DBFileName
)
{
_db_pointer
=
std
::
make_shared
<
odb
::
sqlite
::
database
>
(
_dbName
,
SQLITE_OPEN_READWRITE
|
SQLITE_OPEN_CREATE
);
OpenDatabase
();
...
...
fmvip/task/taskqrpay.cpp
View file @
3434814d
...
...
@@ -60,7 +60,9 @@ void TaskQRPay::packagePOSReq()
setError
(
FM_API_ERROR
,
info
);
return
;
}
_order
->
setOrderAmount
(
getPosJsonValue
(
PosProps
.
OrderAmount
).
toInt
());
//! 目前接口中支付时OrderAmount可能和会员的不同,暂时不修改订单金额。
// _order->setOrderAmount(getPosJsonValue(PosProps.OrderAmount).toInt());
_order
->
setUndisAmount
(
getPosJsonValue
(
PosProps
.
UndisAmount
).
toInt
());
QJsonArray
productArray
=
getPosJsonValue
(
PosProps
.
Products
).
toArray
();
...
...
fmvip/task/taskqrrefund.cpp
View file @
3434814d
...
...
@@ -47,7 +47,7 @@ void TaskQRRefund::packagePOSReq()
LazyPayList
pays
=
_order
->
payList
();
foreach
(
auto
payLazyPointer
,
pays
)
{
//! WARNING: 临时的找第三方支付的方法
if
(
payLazyPointer
.
load
()
->
t
ransId
()
!=
orderId
)
{
if
(
payLazyPointer
.
load
()
->
t
hirdTransId
()
!=
""
)
{
refundPay
=
payLazyPointer
.
getEager
();
break
;
}
...
...
fmvip/windows/forms/fmviporder.ui
View file @
3434814d
...
...
@@ -1073,6 +1073,17 @@ font: 13px "微软雅黑";
</layout>
</widget>
<layoutdefault
spacing=
"6"
margin=
"11"
/>
<tabstops>
<tabstop>
pay_edit
</tabstop>
<tabstop>
pay_btn
</tabstop>
<tabstop>
coupon_page
</tabstop>
<tabstop>
coupon_prev_btn
</tabstop>
<tabstop>
coupon_next_btn
</tabstop>
<tabstop>
close_btn
</tabstop>
<tabstop>
pay_key
</tabstop>
<tabstop>
score_edit
</tabstop>
<tabstop>
score_key
</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>
version.h
View file @
3434814d
...
...
@@ -5,7 +5,7 @@
#define VER_MINOR 1
#define VER_REVISION 0
#define VER_BUILD 5
1
#define VER_BUILD 5
2
//! Convert version numbers to string
#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