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
xiaojing.zhang
fmp_vip
Commits
22774951
Commit
22774951
authored
Jul 27, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 手机号认证不可支付。
parent
4305996f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
5 deletions
+14
-5
fmnetwork.cpp
+0
-1
global.h
+1
-1
task/tasklogin.cpp
+10
-2
task/taskpay.cpp
+3
-1
No files found.
fmnetwork.cpp
View file @
22774951
...
@@ -44,7 +44,6 @@ int FMNetwork::send(const QString &url, const QByteArray &reqData, QByteArray &r
...
@@ -44,7 +44,6 @@ int FMNetwork::send(const QString &url, const QByteArray &reqData, QByteArray &r
QTimer
timer
;
QTimer
timer
;
timer
.
setSingleShot
(
true
);
timer
.
setSingleShot
(
true
);
connect
(
&
timer
,
SIGNAL
(
timeout
()),
&
loop
,
SLOT
(
quit
()));
connect
(
&
timer
,
SIGNAL
(
timeout
()),
&
loop
,
SLOT
(
quit
()));
timer
.
start
(
1000
*
60
);
timer
.
start
(
1000
*
60
);
loop
.
exec
();
loop
.
exec
();
...
...
global.h
View file @
22774951
...
@@ -84,7 +84,7 @@ struct PP{
...
@@ -84,7 +84,7 @@ struct PP{
Amount
=
"amount"
;
Amount
=
"amount"
;
Phone
=
"phone"
;
Phone
=
"phone"
;
Fm_open_id
=
"fm_open_id"
;
Fm_open_id
=
"fm_open_id"
;
CanPay
=
"
C
anPay"
;
CanPay
=
"
c
anPay"
;
Address
=
"address"
;
Address
=
"address"
;
Email
=
"email"
;
Email
=
"email"
;
...
...
task/tasklogin.cpp
View file @
22774951
...
@@ -74,8 +74,15 @@ void TaskLogin::onLogin()
...
@@ -74,8 +74,15 @@ void TaskLogin::onLogin()
QString
birthday
=
getServerJsonValue
(
PosProps
.
Birthday
).
toString
();
QString
birthday
=
getServerJsonValue
(
PosProps
.
Birthday
).
toString
();
QString
name
=
getServerJsonValue
(
PosProps
.
Name
).
toString
();
QString
name
=
getServerJsonValue
(
PosProps
.
Name
).
toString
();
if
(
getServerJsonValue
(
PosProps
.
CanPay
).
toInt
()
==
0
)
{
bool
canPay
=
(
getServerJsonValue
(
PosProps
.
CanPay
).
toInt
()
==
1
);
FMMsgWnd
::
LoginSuccess
(
account
,
name
,
birthday
,
_window
);
if
(
!
canPay
)
{
if
(
getPosJsonValue
(
PosProps
.
Fm_cmd
).
toInt
()
!=
FM_Pay
)
{
FMMsgWnd
::
LoginSuccess
(
account
,
name
,
birthday
,
_window
);
}
else
{
FMMsgWnd
::
FailureWnd
(
QString
::
fromLocal8Bit
(
ErrorNeedPayCode
),
_window
);
_window
->
resetWnd
();
return
;
}
}
}
session
()
->
addData
(
PosProps
.
Name
,
name
);
session
()
->
addData
(
PosProps
.
Name
,
name
);
...
@@ -83,6 +90,7 @@ void TaskLogin::onLogin()
...
@@ -83,6 +90,7 @@ void TaskLogin::onLogin()
session
()
->
addData
(
PosProps
.
Fm_open_id
,
account
);
session
()
->
addData
(
PosProps
.
Fm_open_id
,
account
);
session
()
->
addData
(
PosProps
.
Amount
,
getServerJsonValue
(
PosProps
.
Amount
).
toInt
());
session
()
->
addData
(
PosProps
.
Amount
,
getServerJsonValue
(
PosProps
.
Amount
).
toInt
());
session
()
->
addData
(
PosProps
.
Score
,
getServerJsonValue
(
PosProps
.
Score
).
toInt
());
session
()
->
addData
(
PosProps
.
Score
,
getServerJsonValue
(
PosProps
.
Score
).
toInt
());
session
()
->
addData
(
PosProps
.
CanPay
,
canPay
);
_window
->
accept
();
_window
->
accept
();
}
}
...
...
task/taskpay.cpp
View file @
22774951
...
@@ -29,7 +29,9 @@ QByteArray TaskPay::doTask()
...
@@ -29,7 +29,9 @@ QByteArray TaskPay::doTask()
// return ret;
// return ret;
// }
// }
if
(
session
()
->
data
(
PosProps
.
Fm_open_id
).
toString
()
==
0
)
{
QString
fm_open_id_pos
=
getPosJsonValue
(
PosProps
.
Fm_open_id
).
toString
();
QString
fm_open_id_session
=
session
()
->
data
(
PosProps
.
Fm_open_id
).
toString
();
if
(
fm_open_id_session
==
""
||
fm_open_id_pos
!=
fm_open_id_session
||
session
()
->
data
(
PosProps
.
CanPay
).
toBool
()
==
false
)
{
preTask
=
new
TaskLogin
(
posReqJsonObj
,
_session
,
this
);
preTask
=
new
TaskLogin
(
posReqJsonObj
,
_session
,
this
);
preTask
->
session
()
->
addData
(
PosProps
.
FM_Type
,
FM_Pay
);
preTask
->
session
()
->
addData
(
PosProps
.
FM_Type
,
FM_Pay
);
QByteArray
loginRst
=
preTask
->
doTask
();
QByteArray
loginRst
=
preTask
->
doTask
();
...
...
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