Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
055e84e6
Commit
055e84e6
authored
Mar 28, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upload_phone
parent
e096885b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Shop.php
application/api_broker/controller/Shop.php
+1
-1
HouseService.php
application/index/service/HouseService.php
+3
-1
No files found.
application/api_broker/controller/Shop.php
View file @
055e84e6
...
...
@@ -1117,7 +1117,7 @@ class Shop extends Basic
$msg
=
''
;
$service
=
new
HouseService
();
$result
=
$service
->
addVideo
(
$this
->
params
[
'house_id'
],
$this
->
params
[
'video_name'
],
$this
->
params
[
'video_image'
],
$this
->
agentId
,
$this
->
agentName
);
$result
=
$service
->
addVideo
(
$this
->
params
[
'house_id'
],
$this
->
params
[
'video_name'
],
$this
->
params
[
'video_image'
],
$this
->
agentId
,
$this
->
agentName
,
$this
->
agentPhone
);
if
(
$result
[
'status'
]
==
'fail'
)
{
$code
=
101
;
$msg
=
$result
[
'msg'
];
...
...
application/index/service/HouseService.php
View file @
055e84e6
...
...
@@ -979,9 +979,10 @@ class HouseService
* @param $video_imgage
* @param $upload_id
* @param $upload_name
* @param $upload_phone
* @return mixed
*/
public
function
addVideo
(
$house_id
,
$video_name
,
$video_imgage
,
$upload_id
,
$upload_name
)
public
function
addVideo
(
$house_id
,
$video_name
,
$video_imgage
,
$upload_id
,
$upload_name
,
$upload_phone
)
{
$result
[
'status'
]
=
'fail'
;
...
...
@@ -1008,6 +1009,7 @@ class HouseService
$data
[
'video_image'
]
=
$video_imgage
;
$data
[
'upload_id'
]
=
$upload_id
;
$data
[
'upload_name'
]
=
$upload_name
;
$data
[
'upload_phone'
]
=
$upload_phone
;
$data
[
'house_id'
]
=
$house_id
;
$num
=
$m_video
->
insertData
(
$data
);
if
(
$num
>
0
)
{
...
...
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