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
948587ca
authored
Jul 31, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整
parent
c623b85c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
app/Http/Controllers/OrderController.php
resources/views/detail/changeOrder.blade.php
app/Http/Controllers/OrderController.php
View file @
948587ca
...
@@ -186,11 +186,11 @@ function getSalesName($sale_id)
...
@@ -186,11 +186,11 @@ function getSalesName($sale_id)
}
}
// 判断用户是否为新用户 -- 第一次下单
// 判断用户是否为新用户 -- 第一次下单
function
isNewClient
(
$order_
goods_type
,
$user_
id
)
function
isNewClient
(
$order_id
)
{
{
$
count
=
DB
::
connection
(
'order'
)
->
table
(
'lie_order'
)
->
where
([
'user_id'
=>
$user_id
,
'order_goods_type'
=>
$order_goods_type
])
->
coun
t
();
$
order
=
DB
::
connection
(
'order'
)
->
table
(
'lie_order'
)
->
where
(
'order_id'
,
$order_id
)
->
select
(
'sale_id'
)
->
firs
t
();
return
$
count
==
1
?
true
:
false
;
return
$
order
->
sale_id
==
0
?
true
:
false
;
}
}
// 用户来源
// 用户来源
...
...
resources/views/detail/changeOrder.blade.php
View file @
948587ca
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<input
type=
"hidden"
name=
"check_failed_info"
value=
""
>
<input
type=
"hidden"
name=
"check_failed_info"
value=
""
>
<input
type=
"hidden"
name=
"change_pay_type"
value=
""
>
<input
type=
"hidden"
name=
"change_pay_type"
value=
""
>
<?php
$isNewClient
=
App\Http\Controllers\isNewClient
(
$order_info
[
'order_
goods_type'
],
$order_info
[
'user_
id'
]);
?>
<?php
$isNewClient
=
App\Http\Controllers\isNewClient
(
$order_info
[
'order_id'
]);
?>
@if ($isNewClient)
@if ($isNewClient)
<!-- 用户来源 -->
<!-- 用户来源 -->
<p>
用户来源
</p>
<p>
用户来源
</p>
...
...
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