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
aa140751
Commit
aa140751
authored
Mar 26, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
video_image
parent
fd40c692
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
Shop.php
application/api_broker/controller/Shop.php
+1
-1
Houses.php
application/index/controller/Houses.php
+1
-1
HouseService.php
application/index/service/HouseService.php
+3
-1
No files found.
application/api_broker/controller/Shop.php
View file @
aa140751
...
@@ -1106,7 +1106,7 @@ class Shop extends Basic
...
@@ -1106,7 +1106,7 @@ class Shop extends Basic
$msg
=
''
;
$msg
=
''
;
$service
=
new
HouseService
();
$service
=
new
HouseService
();
$result
=
$service
->
addVideo
(
$this
->
params
[
'house_id'
],
$this
->
params
[
'video_name'
],
$this
->
agentId
,
$this
->
agentName
);
$result
=
$service
->
addVideo
(
$this
->
params
[
'house_id'
],
$this
->
params
[
'video_name'
],
$this
->
params
[
'images'
],
$this
->
agentId
,
$this
->
agentName
);
if
(
$result
[
'status'
]
==
'fail'
)
{
if
(
$result
[
'status'
]
==
'fail'
)
{
$code
=
101
;
$code
=
101
;
$msg
=
$result
[
'msg'
];
$msg
=
$result
[
'msg'
];
...
...
application/index/controller/Houses.php
View file @
aa140751
...
@@ -881,7 +881,7 @@ class Houses extends Basic
...
@@ -881,7 +881,7 @@ class Houses extends Basic
$m_house_video
=
new
GHousesVideo
();
$m_house_video
=
new
GHousesVideo
();
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
15
:
$this
->
params
[
'pageSize'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
15
:
$this
->
params
[
'pageSize'
];
$field
=
'a.id,a.video_name,a.house_id,a.upload_name,a.check_name,a.check_id,a.check_time,a.create_time'
;
$field
=
'a.id,a.video_name,a.house_id,a.upload_name,a.check_name,a.check_id,a.check_time,a.create_time
,a.video_image
'
;
$data
=
$m_house_video
->
getVideoAgentList
(
$pageNo
,
$pageSize
,
'a.id desc'
,
$field
,
$where
);
$data
=
$m_house_video
->
getVideoAgentList
(
$pageNo
,
$pageSize
,
'a.id desc'
,
$field
,
$where
);
$total
=
$m_house_video
->
getVideoAgentListTotal
(
$where
);
$total
=
$m_house_video
->
getVideoAgentListTotal
(
$where
);
foreach
(
$data
as
$k
=>
$v
)
{
foreach
(
$data
as
$k
=>
$v
)
{
...
...
application/index/service/HouseService.php
View file @
aa140751
...
@@ -975,11 +975,12 @@ class HouseService
...
@@ -975,11 +975,12 @@ class HouseService
/**
/**
* @param $house_id
* @param $house_id
* @param $video_name
* @param $video_name
* @param $video_imgage
* @param $upload_id
* @param $upload_id
* @param $upload_name
* @param $upload_name
* @return mixed
* @return mixed
*/
*/
public
function
addVideo
(
$house_id
,
$video_name
,
$upload_id
,
$upload_name
)
public
function
addVideo
(
$house_id
,
$video_name
,
$
video_imgage
,
$
upload_id
,
$upload_name
)
{
{
$result
[
'status'
]
=
'fail'
;
$result
[
'status'
]
=
'fail'
;
...
@@ -1003,6 +1004,7 @@ class HouseService
...
@@ -1003,6 +1004,7 @@ class HouseService
}
}
$data
[
'video_name'
]
=
$video_name
;
$data
[
'video_name'
]
=
$video_name
;
$data
[
'video_image'
]
=
$video_imgage
;
$data
[
'upload_id'
]
=
$upload_id
;
$data
[
'upload_id'
]
=
$upload_id
;
$data
[
'upload_name'
]
=
$upload_name
;
$data
[
'upload_name'
]
=
$upload_name
;
$data
[
'house_id'
]
=
$house_id
;
$data
[
'house_id'
]
=
$house_id
;
...
...
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