Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2a75500e
authored
Jan 20, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整联营即将付款定时任务
parent
bbcdae37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
app/Http/Controllers/OrderController.php
app/Http/Controllers/OrderController.php
View file @
2a75500e
...
@@ -1924,6 +1924,7 @@ Class OrderController extends Controller
...
@@ -1924,6 +1924,7 @@ Class OrderController extends Controller
if
(
!
empty
(
$order
))
{
if
(
!
empty
(
$order
))
{
foreach
(
$order
as
$v
)
{
foreach
(
$order
as
$v
)
{
$orderInfo
=
array
();
$orderInfo
=
array
();
$wechat_data
=
array
();
// 提前一天推送消息
// 提前一天推送消息
$diff
=
$v
->
pay_time
-
time
();
$diff
=
$v
->
pay_time
-
time
();
...
@@ -1931,18 +1932,23 @@ Class OrderController extends Controller
...
@@ -1931,18 +1932,23 @@ Class OrderController extends Controller
if
(
$diff
<=
86400
)
{
if
(
$diff
<=
86400
)
{
$currency
=
$v
->
currency
==
1
?
'¥'
:
'$'
;
$currency
=
$v
->
currency
==
1
?
'¥'
:
'$'
;
$orderInfo
[
'data'
][
'order_sn'
]
=
$v
->
order_sn
;
$orderInfo
[
'data'
][
'order_sn'
]
=
$v
->
order_sn
;
$orderInfo
[
'data'
][
'order_amount'
]
=
$currency
.
$v
->
order_amount
;
$orderInfo
[
'data'
][
'order_amount'
]
=
$currency
.
$v
->
order_amount
;
$orderInfo
=
json_encode
(
$orderInfo
[
'data'
],
JSON_UNESCAPED_UNICODE
);
$wechat_data
[
'keyword1'
][
'value'
]
=
$v
->
order_sn
;
$wechat_data
[
'keyword2'
][
'value'
]
=
$currency
.
$v
->
order_amount
;
// 订单金额
$orderInfo
=
json_encode
(
$orderInfo
[
'data'
],
JSON_UNESCAPED_UNICODE
);
$wechatData
=
json_encode
(
$wechat_data
,
JSON_UNESCAPED_UNICODE
);
$orderData
=
[
$orderData
=
[
"keyword"
=>
$keyword
,
"keyword"
=>
$keyword
,
"pf"
=>
1
,
"pf"
=>
1
,
"k1"
=>
$data
[
'k1'
],
"k1"
=>
$data
[
'k1'
],
"k2"
=>
$data
[
'k2'
],
"k2"
=>
$data
[
'k2'
],
'touser'
=>
json_encode
(
$v
->
user_id
),
'touser'
=>
json_encode
(
$v
->
user_id
),
'data'
=>
$orderInfo
,
'data'
=>
$orderInfo
,
'wechat_data'
=>
$wechatData
,
];
];
$temp
=
json_decode
(
curlApi
(
$url
,
$orderData
,
"POST"
),
true
);
$temp
=
json_decode
(
curlApi
(
$url
,
$orderData
,
"POST"
),
true
);
...
...
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