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
870cd5ed
Commit
870cd5ed
authored
Dec 12, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 添加环境变量。 2. 修改配置文件为绝对路径。
parent
0705a1d9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
FMVip_LXJ/FMVip_LXJ.pro
+1
-1
FMVip_LXJ/fmsetting.cpp
+2
-2
FMVip_LXJ/main.cpp
+2
-0
FMVip_LXJ/task/fmp_redeem.cpp
+2
-2
No files found.
FMVip_LXJ/FMVip_LXJ.pro
View file @
870cd5ed
...
...
@@ -13,7 +13,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET
=
FMVip_LXJ
TEMPLATE
=
app
DEFINES
+=
FMTEST
#
DEFINES += FMTEST
SOURCES
+=
main
.
cpp
\
task
/
fmtask
.
cpp
\
...
...
FMVip_LXJ/fmsetting.cpp
View file @
870cd5ed
...
...
@@ -6,8 +6,8 @@
FMSetting
::
FMSetting
()
{
_sets
=
new
QSettings
(
"
FMVip.cfg"
,
QSettings
::
IniFormat
);
_sets
->
setIniCodec
(
"GB
18030
"
);
_sets
=
new
QSettings
(
qApp
->
applicationDirPath
()
+
"/
FMVip.cfg"
,
QSettings
::
IniFormat
);
_sets
->
setIniCodec
(
"GB
K
"
);
}
FMSetting
*
FMSetting
::
Instance
()
...
...
FMVip_LXJ/main.cpp
View file @
870cd5ed
...
...
@@ -24,6 +24,8 @@ int main(int argc, char *argv[])
w
.
show
();
w
.
close
();
qputenv
(
"path"
,
qApp
->
applicationDirPath
().
toLocal8Bit
());
FMVipDispatcher
relay
;
FMSockServer
server
(
&
relay
);
relay
.
createSysIcon
();
...
...
FMVip_LXJ/task/fmp_redeem.cpp
View file @
870cd5ed
...
...
@@ -153,6 +153,7 @@ QJsonObject FMPRedeem::SendRequest(const QByteArray &reqData)
config
.
setProtocol
(
QSsl
::
SslV3
);
config
.
setCaCertificates
(
certs
);
qDebug
()
<<
"Send url: "
<<
_url
;
req
.
setSslConfiguration
(
config
);
req
.
setUrl
(
_url
);
req
.
setHeader
(
QNetworkRequest
::
ContentTypeHeader
,
"application/json"
);
...
...
@@ -429,4 +430,4 @@ QByteArray FMPRedeem::CheckSendArray(QByteArray &jsonArray)
QByteArray
array
(
tmpBuf
);
return
array
;
}
\ No newline at end of file
}
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