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
b60b6c0a
authored
Mar 07, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' into development
parents
d6429427
4cd5e5d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
app/Http/Controllers/AddOrderController.php
app/Http/Controllers/AddOrderController.php
View file @
b60b6c0a
...
@@ -209,13 +209,11 @@ Class AddOrderController extends Controller
...
@@ -209,13 +209,11 @@ Class AddOrderController extends Controller
$address
=
DB
::
connection
(
'order'
)
->
table
(
'lie_user_address'
)
->
where
([
'user_id'
=>
$info
[
'internal_uid'
],
'is_default'
=>
1
])
->
first
();
$address
=
DB
::
connection
(
'order'
)
->
table
(
'lie_user_address'
)
->
where
([
'user_id'
=>
$info
[
'internal_uid'
],
'is_default'
=>
1
])
->
first
();
$address
->
province_val
=
$this
->
getAddress
(
$address
->
province
);
$address
->
province_val
=
$this
->
getAddress
(
$address
->
province
);
$address
->
city_val
=
$this
->
getAddress
(
$address
->
city
);
$address
->
city_val
=
$this
->
getAddress
(
$address
->
city
);
$address
->
district_val
=
$this
->
getAddress
(
$address
->
district
);
$address
->
district_val
=
$this
->
getAddress
(
$address
->
district
);
$info
[
'address'
]
=
$address
;
$info
[
'address'
]
=
$address
;
$info
[
'sale_id'
]
=
$request
->
user
->
userId
;
$sale_id
=
$request
->
user
->
userId
;
$info
[
'sale_id'
]
=
$sale_id
;
// 当前登录用户名称
// 当前登录用户名称
$userInfo
=
DB
::
table
(
'user_info'
)
->
where
(
'userId'
,
$sale_id
)
->
select
(
'name'
)
->
first
();
$userInfo
=
DB
::
table
(
'user_info'
)
->
where
(
'userId'
,
$sale_id
)
->
select
(
'name'
)
->
first
();
...
@@ -228,6 +226,8 @@ Class AddOrderController extends Controller
...
@@ -228,6 +226,8 @@ Class AddOrderController extends Controller
$user
=
DB
::
connection
(
'order'
)
->
table
(
'lie_user_main'
)
->
where
(
'user_id'
,
$intracode
->
user_id
)
->
select
(
'mobile'
)
->
first
();
$user
=
DB
::
connection
(
'order'
)
->
table
(
'lie_user_main'
)
->
where
(
'user_id'
,
$intracode
->
user_id
)
->
select
(
'mobile'
)
->
first
();
$info
[
'mobile'
]
=
$user
?
$user
->
mobile
:
''
;
$info
[
'mobile'
]
=
$user
?
$user
->
mobile
:
''
;
}
else
{
$info
[
'mobile'
]
=
''
;
}
}
return
view
(
'addOffline'
,
$info
);
return
view
(
'addOffline'
,
$info
);
...
...
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