Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sbkpay
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
sbkpay
Commits
b4d74f5e
Commit
b4d74f5e
authored
Sep 04, 2017
by
李定达
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改提示语
parent
a1971a06
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sbkpay/control.cpp
+5
-5
No files found.
sbkpay/control.cpp
View file @
b4d74f5e
...
@@ -64,7 +64,7 @@ void Control::Start(const char *indata, char *outdata)
...
@@ -64,7 +64,7 @@ void Control::Start(const char *indata, char *outdata)
ToolS
::
GetProcPath
(
pathStr
);
ToolS
::
GetProcPath
(
pathStr
);
appPath
=
QString
::
fromLocal8Bit
(
pathStr
);
appPath
=
QString
::
fromLocal8Bit
(
pathStr
);
appPath
=
appPath
.
replace
(
"
\\
"
,
"/"
);
appPath
=
appPath
.
replace
(
"
\\
"
,
"/"
);
QFontDatabase
::
addApplicationFont
(
appPath
+
"
/
msyh.ttf"
);
QFontDatabase
::
addApplicationFont
(
appPath
+
"msyh.ttf"
);
QFont
ft
(
"Microsoft YaHei UI Light"
);
QFont
ft
(
"Microsoft YaHei UI Light"
);
qApp
->
setFont
(
ft
);
qApp
->
setFont
(
ft
);
...
@@ -221,7 +221,7 @@ bool Control::HttpPost(QString url, QByteArray &outdata, const QByteArray &indat
...
@@ -221,7 +221,7 @@ bool Control::HttpPost(QString url, QByteArray &outdata, const QByteArray &indat
if
(
reply
->
error
()
!=
QNetworkReply
::
NoError
)
if
(
reply
->
error
()
!=
QNetworkReply
::
NoError
)
{
{
error
=
QString
::
fromLocal8Bit
(
"网
络异常,获取服务端返回数据失败
"
);
error
=
QString
::
fromLocal8Bit
(
"网
路异常.交易失败.如已扣款将会自动返还
"
);
QLOG_INFO
()
<<
reply
->
errorString
()
<<
"Contents: "
<<
reply
->
readAll
();
QLOG_INFO
()
<<
reply
->
errorString
()
<<
"Contents: "
<<
reply
->
readAll
();
return
false
;
return
false
;
}
}
...
@@ -230,7 +230,7 @@ bool Control::HttpPost(QString url, QByteArray &outdata, const QByteArray &indat
...
@@ -230,7 +230,7 @@ bool Control::HttpPost(QString url, QByteArray &outdata, const QByteArray &indat
if
(
outdata
.
isEmpty
())
if
(
outdata
.
isEmpty
())
{
{
error
=
QString
::
fromLocal8Bit
(
"网
络异常,获取服务端返回数据为空
"
);
error
=
QString
::
fromLocal8Bit
(
"网
路异常.交易失败.如已扣款将会自动返还
"
);
QLOG_INFO
()
<<
reply
->
errorString
()
<<
"Contents: "
<<
reply
->
readAll
();
QLOG_INFO
()
<<
reply
->
errorString
()
<<
"Contents: "
<<
reply
->
readAll
();
return
false
;
return
false
;
}
}
...
@@ -443,7 +443,7 @@ void Control::Request(ReqType type, QStringList list)
...
@@ -443,7 +443,7 @@ void Control::Request(ReqType type, QStringList list)
++
i
;
++
i
;
}
}
if
(
tmpflag
)
if
(
tmpflag
)
SetResPonseWithMessage
(
"23"
,
QString
::
fromLocal8Bit
(
"支付取消成功
,支付成功,金额将原路
返还"
));
SetResPonseWithMessage
(
"23"
,
QString
::
fromLocal8Bit
(
"支付取消成功
.如已扣款将会自动
返还"
));
else
else
{
{
QVariantHash
hash
;
QVariantHash
hash
;
...
@@ -454,7 +454,7 @@ void Control::Request(ReqType type, QStringList list)
...
@@ -454,7 +454,7 @@ void Control::Request(ReqType type, QStringList list)
QLOG_ERROR
()
<<
"roll back faile , move request to database : "
<<
json
;
QLOG_ERROR
()
<<
"roll back faile , move request to database : "
<<
json
;
_db
->
insert
(
DB_TABLE_NAME
,
hash
);
_db
->
insert
(
DB_TABLE_NAME
,
hash
);
SetResPonseWithMessage
(
"23"
,
QString
::
fromLocal8Bit
(
"支付取消
,支付成功,金额将原路
返还"
));
SetResPonseWithMessage
(
"23"
,
QString
::
fromLocal8Bit
(
"支付取消
成功.如已扣款将会自动
返还"
));
}
}
_lock
.
lock
();
_lock
.
lock
();
...
...
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