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
00730ff9
Commit
00730ff9
authored
Dec 24, 2018
by
yangsh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改推送模版消息
parent
59f668f9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
3 deletions
+16
-3
.env
+1
-0
.idea/workspace.xml
+0
-0
application/controller/card/PayRuleController.php
+13
-3
readme.md
+2
-0
No files found.
.env
View file @
00730ff9
...
...
@@ -31,6 +31,7 @@ MESSAGE_CHARGER_TIMEOUT=f0DDXSxvRTbHyzkCnwnYijtgteFTdfdUR7J8REwTYJ8
MESSAGE_RELOAD=t_PyOGCKN_fmD0blw0EuIQs-8sS3qOTmpQay12haPZY
MESSAGE_SHED_TIMEOUT=rdzTNQ7t4uRXkP0SkuwW10WH77A_CIgYFiJykXJ0utU
MESSAGE_CHARGER_SHED=C0LvfETe-1rCR_IhOydDGPTUwwYkrWZxgfwMsETrhw8
MESSAGE_CHARGER_FULL=f0DDXSxvRTbHyzkCnwnYijtgteFTdfdUR7J8REwTYJ8
DOWNLOAD_HOST=https://cdzpay.test.senthink.com
LOW_POWER_LIMIT=30
PAY_HOST=https://cdzpay.test.senthink.com
.idea/workspace.xml
View file @
00730ff9
This diff is collapsed.
Click to expand it.
application/controller/card/PayRuleController.php
View file @
00730ff9
...
...
@@ -12,6 +12,7 @@ namespace Application\controller\card;
use
Application\controller\Controller
;
use
Application\model\BillTmpModel
;
use
Application\model\StationModel
;
use
GatewayWorker\Lib\Gateway
;
use
Lib\log\Log
;
...
...
@@ -32,17 +33,26 @@ class PayRuleController extends Controller
{
$billingTmp
=
new
BillTmpModel
();
$stationModel
=
new
StationModel
();
if
(
isset
(
$_SESSION
[
'station_id'
])
==
false
)
{
Gateway
::
closeClient
(
$this
->
clientId
);
}
$rule
=
$billingTmp
->
getColumn
(
'context'
,
'id = '
.
$_SESSION
[
'station_id'
]);
$rule
=
$stationModel
->
getColumns
([
'billing_template2'
,
'billingTpl_id'
],
'id = '
.
$_SESSION
[
'station_id'
]);
Log
::
debug
(
'station'
,
$rule
);
if
(
$rule
[
'billing_template2'
]
===
null
)
{
$rule
=
$billingTmp
->
getColumn
(
'context'
,
'id = '
.
$rule
[
'billingTpl_id'
]);
}
else
{
$rule
=
$rule
[
'billing_template2'
];
}
if
(
isset
(
$rule
))
{
$rule
=
json_decode
(
$rule
,
true
);
$back
=
[];
$count
=
count
(
$rule
);
foreach
(
$rule
as
$item
)
{
...
...
readme.md
0 → 100644
View file @
00730ff9
# staging:54.222.172.6 8282
# test: 52.80.115.117 8283
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