Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FMVip_Today
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_Today
Commits
77ac93c9
Commit
77ac93c9
authored
Nov 17, 2016
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 修复日志记录response时崩溃问题。 2. 修复网络恢复时仍显示网络错误的bug。
parent
f123ca7d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
2 deletions
+3
-2
FMVip/FMVip.pro
+1
-0
FMVip/fmvipforward.cpp
+1
-0
FMVip/fmvipforward.h
+0
-1
FMVipDC/fmsockserver.cpp
+1
-1
No files found.
FMVip/FMVip.pro
View file @
77ac93c9
...
...
@@ -58,6 +58,7 @@ INCLUDEPATH += ../FMVipDC/ ./backup
win32
{
RC_FILE
=
res
/
FMVip
.
rc
LIBS
+=
-
lws2_32
}
SUBDIRS
+=
\
...
...
FMVip/fmvipforward.cpp
View file @
77ac93c9
...
...
@@ -107,6 +107,7 @@ void FMVipForward::request(const QJsonObject &reqJob)
_req
.
setHeader
(
QNetworkRequest
::
ContentTypeHeader
,
"application/json"
);
_req
.
setHeader
(
QNetworkRequest
::
ContentLengthHeader
,
reqData
.
length
());
QNetworkAccessManager
_nam
;
auto
reply
=
_nam
.
post
(
_req
,
reqData
);
// 使用定时器处理超时
...
...
FMVip/fmvipforward.h
View file @
77ac93c9
...
...
@@ -97,7 +97,6 @@ private:
static
FMVipForward
*
_instance
;
FMApiCfg
_cfg
;
QNetworkAccessManager
_nam
;
QNetworkRequest
_req
;
QString
_urlStr
;
int
_reqType
;
...
...
FMVipDC/fmsockserver.cpp
View file @
77ac93c9
...
...
@@ -212,7 +212,7 @@ void FMSockServer::RecvRoutine(DWORD err, DWORD bytes, LPWSAOVERLAPPED overlappe
io_data
->
relay
->
Transfer
(
io_data
->
msg
,
response
,
len
);
}
if
(
response
)
{
FMLOG
(
_T
(
"Transfered %s"
)
,
response
);
FMLOG
(
"Transfered %s"
,
response
);
send
(
io_data
->
socket
,
response
,
len
,
0
);
}
else
{
...
...
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