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
71e7918e
authored
May 24, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整定时任务和同步
parent
fe26a315
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
app/Http/Controllers/OrderController.php
resources/views/detail/content.blade.php
resources/views/orderlist/content.blade.php
app/Http/Controllers/OrderController.php
View file @
71e7918e
...
@@ -1666,8 +1666,10 @@ Class OrderController extends Controller
...
@@ -1666,8 +1666,10 @@ Class OrderController extends Controller
->
update
([
'status'
=>
-
1
,
'pay_time'
=>
0
,
'cancel_time'
=>
time
()]);
->
update
([
'status'
=>
-
1
,
'pay_time'
=>
0
,
'cancel_time'
=>
time
()]);
if
(
$update
)
{
if
(
$update
)
{
$log
=
array
();
// 记录
// 记录
$log
[
'order_id'
]
=
$order_id
;
$log
[
'order_id'
]
=
$
v
->
order_id
;
$log
[
'operator_id'
]
=
0
;
$log
[
'operator_id'
]
=
0
;
$log
[
'operator_type'
]
=
3
;
$log
[
'operator_type'
]
=
3
;
$log
[
'event'
]
=
'取消订单,取消原因:超时未付款'
;
$log
[
'event'
]
=
'取消订单,取消原因:超时未付款'
;
...
...
resources/views/detail/content.blade.php
View file @
71e7918e
...
@@ -524,8 +524,9 @@
...
@@ -524,8 +524,9 @@
@if (in_array($order_info['status'], array(4, 7, 8, 10))
&&
in_array('order_send', $userPerms))
@if (in_array($order_info['status'], array(4, 7, 8, 10))
&&
in_array('order_send', $userPerms))
<!-- <a href="{{URL('send', ['order_id'=>$order_info['order_id']])}}" class="btn btn-default">订单发货</a> -->
<!-- <a href="{{URL('send', ['order_id'=>$order_info['order_id']])}}" class="btn btn-default">订单发货</a> -->
@endif
@endif
@if ($order_info['status'] == 10)
<!-- 已发货之后的状态 -->
@if ($order_info['status'] > 4)
<a
href=
"{{URL('invShipping', ['order_id'=>$order_info['order_id']])}}"
class=
"btn btn-default"
>
寄送发票
</a>
<a
href=
"{{URL('invShipping', ['order_id'=>$order_info['order_id']])}}"
class=
"btn btn-default"
>
寄送发票
</a>
@endif
@endif
...
...
resources/views/orderlist/content.blade.php
View file @
71e7918e
...
@@ -259,7 +259,7 @@
...
@@ -259,7 +259,7 @@
if
(
in_array
(
$v
[
'status'
],
[
-
1
,
1
,
2
]))
{
if
(
in_array
(
$v
[
'status'
],
[
-
1
,
1
,
2
]))
{
echo
'不需同步'
;
echo
'不需同步'
;
}
else
{
}
else
{
echo
$v
[
'erp_order_id'
]
!=
''
||
$v
[
'erp_order_id'
]
!=
'-'
?
'<span class="list-text-success"><b>已同步</b></span>'
:
'<span class="list-text-checking"><b>未同步</b></span>'
;
echo
$v
[
'erp_order_id'
]
!=
''
&&
$v
[
'erp_order_id'
]
!=
'-'
?
'<span class="list-text-success"><b>已同步</b></span>'
:
'<span class="list-text-checking"><b>未同步</b></span>'
;
}
}
?>
?>
</td>
</td>
...
...
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