Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cdz_gateway_v2
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
杨苏杭
cdz_gateway_v2
Commits
6118513a
Commit
6118513a
authored
Jan 08, 2019
by
杨苏杭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
刷卡协议请求充电不返回卡id
parent
0b69f017
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
4 deletions
+1
-4
.idea/workspace.xml
+0
-0
application/controller/card/charger/RequestController.php
+1
-4
No files found.
.idea/workspace.xml
View file @
6118513a
This diff is collapsed.
Click to expand it.
application/controller/card/charger/RequestController.php
View file @
6118513a
...
@@ -74,10 +74,7 @@ class RequestController extends Controller
...
@@ -74,10 +74,7 @@ class RequestController extends Controller
if
((
int
)
$balance
<
(
int
)
$price
)
{
if
((
int
)
$balance
<
(
int
)
$price
)
{
$orderId
=
0
;
$orderId
=
0
;
}
else
{
}
else
{
//添加订单记录.
//添加订单记录.
$stationId
=
$_SESSION
[
'station_id'
];
$stationId
=
$_SESSION
[
'station_id'
];
$gatewayId
=
$_SESSION
[
'gateway_id'
];
$gatewayId
=
$_SESSION
[
'gateway_id'
];
...
@@ -100,7 +97,7 @@ class RequestController extends Controller
...
@@ -100,7 +97,7 @@ class RequestController extends Controller
$orderId
=
$orderModel
->
getColumn
(
'id'
,
'out_trade_no = '
.
$outTradeNo
);
$orderId
=
$orderModel
->
getColumn
(
'id'
,
'out_trade_no = '
.
$outTradeNo
);
}
}
$this
->
response
->
send
(
'33'
,
$type
.
Tool
::
padding
(
$logicId
,
1
)
.
$cardId
.
Tool
::
padding
(
$time
,
2
)
.
Tool
::
padding
(
$price
,
2
)
.
Tool
::
padding
(
$orderId
,
6
)
.
Tool
::
padding
(
$balance
,
4
));
$this
->
response
->
send
(
'33'
,
$type
.
Tool
::
padding
(
$logicId
,
1
)
.
Tool
::
padding
(
$time
,
2
)
.
Tool
::
padding
(
$price
,
2
)
.
Tool
::
padding
(
$orderId
,
6
)
.
Tool
::
padding
(
$balance
,
4
));
if
(
$orderId
!=
0
)
{
if
(
$orderId
!=
0
)
{
//todo 订单缓存存储
//todo 订单缓存存储
...
...
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