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
43640a5b
authored
Apr 03, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整定时任务
parent
bb535407
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
app/Http/Controllers/OrderController.php
app/Http/Controllers/OrderController.php
View file @
43640a5b
...
...
@@ -1054,6 +1054,7 @@ Class OrderController extends Controller
->
whereIn
(
'status'
,
[
'2'
,
'3'
])
->
whereNotIn
(
'user_id'
,
$this
->
testMobile
())
->
where
(
'is_type'
,
'='
,
0
)
->
where
(
'pay_time'
,
'>'
,
time
())
->
select
(
'order_id'
,
'order_sn'
,
'user_id'
,
'order_amount'
,
'currency'
,
'pay_time'
)
->
orderBy
(
'create_time'
,
'DESC'
)
->
get
();
...
...
@@ -1074,13 +1075,18 @@ Class OrderController extends Controller
if
(
$diff
<=
86400
)
{
$currency
=
$v
->
currency
==
1
?
'¥'
:
'$'
;
$orderInfo
[
'data'
][
'order_sn'
]
=
$v
->
order_sn
;
$orderInfo
[
'data'
][
'order_amount'
]
=
$currency
.
$v
->
order_amount
;
$orderInfo
=
json_encode
(
$orderInfo
[
'data'
],
JSON_UNESCAPED_UNICODE
);
$orderData
=
[
"keyword"
=>
$keyword
,
"pf"
=>
1
,
"k1"
=>
$data
[
'k1'
],
"k2"
=>
$data
[
'k2'
],
'touser'
=>
json_encode
(
$v
->
user_id
),
'data'
=>
json_encode
([
$v
->
order_sn
,
$currency
.
$v
->
order_amount
])
,
'data'
=>
$orderInfo
,
];
$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