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
3a71a7ac
authored
Sep 04, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_order_source_20180904' into development
parents
0d24e570
01e24d17
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
app/Http/Controllers/OrderController.php
resources/views/orderlist/content.blade.php
resources/views/selfOrder/content.blade.php
app/Http/Controllers/OrderController.php
View file @
3a71a7ac
...
...
@@ -245,6 +245,22 @@ function getOrderSource($order_id)
return
false
;
}
// 过滤来源字段
function
handleOrderSource
(
$order_source
)
{
if
(
!
$order_source
)
return
false
;
$source
=
explode
(
','
,
$order_source
);
foreach
(
$source
as
$k
=>
$v
)
{
if
(
!
preg_match
(
'/^(pf=|k=|adtag=|ptag=)/'
,
$v
))
{
unset
(
$source
[
$k
]);
}
}
return
implode
(
','
,
$source
);
}
Class
OrderController
extends
Controller
{
// 首页
...
...
resources/views/orderlist/content.blade.php
View file @
3a71a7ac
...
...
@@ -386,7 +386,7 @@
<tr>
<td
class=
"table-list-title"
>
Adtag或其它
</td>
<td
class=
"table-list-content"
colspan=
"3"
>
<p
class=
"show-title"
title=
"
{{$v['order_source']}}"
>
{{$v['order_source']}}
</p>
<p
class=
"show-title"
title=
"
<?php
echo
App\Http\Controllers\handleOrderSource
(
$v
[
'order_source'
]);
?>
"
>
<?php
echo
App\Http\Controllers\handleOrderSource
(
$v
[
'order_source'
]);
?>
</p>
</td>
</tr>
</table>
...
...
resources/views/selfOrder/content.blade.php
View file @
3a71a7ac
...
...
@@ -288,7 +288,7 @@
<td
class=
"table-list-content"
>
{{$shippingNo ? substr($shippingNo, 0, -2) : ''}}
</td>
<td
class=
"table-list-title"
>
Adtag或其它
</td>
<td
class=
"table-list-content"
>
<p
class=
"show-title"
title=
"
{{$v['order_source']}}"
>
{{$v['order_source']}}
</p>
<p
class=
"show-title"
title=
"
<?php
echo
App\Http\Controllers\handleOrderSource
(
$v
[
'order_source'
]);
?>
"
>
<?php
echo
App\Http\Controllers\handleOrderSource
(
$v
[
'order_source'
]);
?>
</p>
</td>
</tr>
</table>
...
...
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