Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FMVip_LXJ
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
FMVip_LXJ
Commits
e0532a6c
Commit
e0532a6c
authored
Jan 12, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 修复会员面板的积分显示问题。 2. 修改返回给POS和打印log的字符串编码。
parent
f078b9c0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
FMVip_LXJ/fmvipdispatcher.cpp
+4
-2
FMVip_LXJ/main.cpp
+1
-1
FMVip_LXJ/windows/fmvippanel.cpp
+1
-0
No files found.
FMVip_LXJ/fmvipdispatcher.cpp
View file @
e0532a6c
...
@@ -36,8 +36,10 @@ BOOL FMVipDispatcher::Transfer(LPSTR data, LPSTR &rsp, UINT &rsp_len)
...
@@ -36,8 +36,10 @@ BOOL FMVipDispatcher::Transfer(LPSTR data, LPSTR &rsp, UINT &rsp_len)
condition
.
wait
(
&
mutex
);
condition
.
wait
(
&
mutex
);
mutex
.
unlock
();
mutex
.
unlock
();
rsp
=
rspData
.
data
();
QString
strData
(
rspData
);
rsp_len
=
rspData
.
length
();
QByteArray
bData
=
strData
.
toLocal8Bit
();
rsp
=
bData
.
data
();
rsp_len
=
bData
.
length
();
emit
stopSocketTimer
();
emit
stopSocketTimer
();
}
}
...
...
FMVip_LXJ/main.cpp
View file @
e0532a6c
...
@@ -93,5 +93,5 @@ void customMessageHandler(QtMsgType type,const QMessageLogContext& Context, cons
...
@@ -93,5 +93,5 @@ void customMessageHandler(QtMsgType type,const QMessageLogContext& Context, cons
debugInfo
=
QString
(
"Fatal: %1"
).
arg
(
msg
);
debugInfo
=
QString
(
"Fatal: %1"
).
arg
(
msg
);
abort
();
abort
();
}
}
FMLOG
(
"%s"
,
debugInfo
.
to
StdString
().
c_str
());
FMLOG
(
"%s"
,
debugInfo
.
to
Local8Bit
().
data
());
}
}
FMVip_LXJ/windows/fmvippanel.cpp
View file @
e0532a6c
...
@@ -28,6 +28,7 @@ void FMVipPanel::initWnd(Session *session)
...
@@ -28,6 +28,7 @@ void FMVipPanel::initWnd(Session *session)
ui
->
balance_label
->
setText
(
DOUBLE_STR
(
session
->
data
(
PosProps
.
Amount
).
toInt
()
/
100.0
));
ui
->
balance_label
->
setText
(
DOUBLE_STR
(
session
->
data
(
PosProps
.
Amount
).
toInt
()
/
100.0
));
ui
->
name_label
->
setText
(
session
->
data
(
PosProps
.
Name
).
toString
());
ui
->
name_label
->
setText
(
session
->
data
(
PosProps
.
Name
).
toString
());
ui
->
bir_label
->
setText
(
session
->
data
(
PosProps
.
Birthday
).
toString
());
ui
->
bir_label
->
setText
(
session
->
data
(
PosProps
.
Birthday
).
toString
());
ui
->
point_label
->
setText
(
QString
::
number
(
session
->
data
(
PosProps
.
Score
).
toInt
()));
ui
->
fund_btn
->
setFocus
();
ui
->
fund_btn
->
setFocus
();
}
}
...
...
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