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
be5d0826
Commit
be5d0826
authored
Mar 24, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺视频列表
parent
20fca440
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
89 additions
and
3 deletions
+89
-3
HouseVideo.php
application/index/controller/HouseVideo.php
+54
-0
ImageDepot.php
application/index/controller/ImageDepot.php
+5
-3
GHousesVideo.php
application/model/GHousesVideo.php
+30
-0
No files found.
application/index/controller/HouseVideo.php
0 → 100644
View file @
be5d0826
<?php
namespace
app\index\controller
;
use
app\api\controller\WxSdk
;
use
app\api\untils\WxCallbackUntils
;
use
app\index\extend\Basic
;
use
app\index\service\UserService
;
use
app\model\GHousesVideo
;
use
app\model\UWxInfo
;
use
Think\Log
;
use
think\Request
;
/**
* Created by PhpStorm.
* User : zhwuei
* Date : 2019-03-24
* Time : 15:00:13
* Intro:
*/
class
HouseVideo
extends
Basic
{
private
$m_houses_video
;
public
function
__construct
(
Request
$request
=
null
)
{
parent
::
__construct
(
$request
);
$this
->
m_houses_video
=
new
GHousesVideo
();
}
public
function
getHouseVideoList
()
{
$params
=
$this
->
params
;
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$res
=
$this
->
m_houses_video
->
getHouseVideoList
(
$pageNo
,
$pageSize
,
$field
,
$get_params
);
$res_total
=
$this
->
m_houses_video
->
getHouseVideoListTotal
(
$field
,
$get_params
);
foreach
(
$res
as
$key
=>
$val
)
{
}
}
}
\ No newline at end of file
application/index/controller/ImageDepot.php
View file @
be5d0826
...
@@ -181,10 +181,12 @@ class ImageDepot extends Basic
...
@@ -181,10 +181,12 @@ class ImageDepot extends Basic
public
function
ceshi
()
public
function
ceshi
()
{
{
$service
=
new
ConvertCouponService
();
$user_service
=
new
UserService
();
$service
->
convertCoupon
(
135281
,
12
,
12
,
12
);
//核销红包
$agent_id
=
6446
;
$user_id
=
89
;
dump
(
0
);
exit
;
$is_report
=
$user_service
->
isReport
(
$agent_id
,
$user_id
);
dump
(
$is_report
);
}
}
...
...
application/model/GHousesVideo.php
View file @
be5d0826
...
@@ -37,4 +37,33 @@ class GHousesVideo extends BaseModel
...
@@ -37,4 +37,33 @@ class GHousesVideo extends BaseModel
return
$num
;
return
$num
;
}
}
public
function
getHouseVideoList
(
$pageNo
,
$pageSize
,
$field
,
$params
)
{
$order
=
"a.create_time desc"
;
$result
=
Db
::
table
(
$this
->
table
)
->
field
(
$field
)
->
alias
(
'a'
)
->
join
(
'g_houses b'
,
'a.house_id = Houses.id'
,
'right'
)
->
where
(
$params
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
order
(
$order
)
->
select
();
//dump($this->getLastSql());
return
$result
;
}
public
function
getHouseVideoListTotal
(
$field
,
$params
)
{
$order
=
"a.create_time desc"
;
$result
=
Db
::
table
(
$this
->
table
)
->
field
(
$field
)
->
alias
(
'a'
)
->
join
(
'g_houses b'
,
'a.house_id = Houses.id'
,
'left'
)
->
where
(
$params
)
->
count
();
//dump($this->getLastSql());
return
$result
;
}
}
}
\ No newline at end of file
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