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
e132603f
Commit
e132603f
authored
Jun 14, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台公告列表
parent
8f548e38
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Notice.php
application/index/controller/Notice.php
+2
-2
PushFeed.php
application/model/PushFeed.php
+2
-2
No files found.
application/index/controller/Notice.php
View file @
e132603f
...
...
@@ -83,10 +83,10 @@ class Notice extends Basic
$data
[
'publisher_id'
]
=
$this
->
userId
;
$data
[
'agent_id'
]
=
-
1
;
$data
[
'steel_phone'
]
=
0
;
$data
[
'type'
]
=
1
;
$num
=
$this
->
m_push
->
editData
(
$data
);
if
(
$num
>
0
)
{
if
(
$num
<
1
)
{
return
$this
->
response
(
101
,
'新增公告失败!'
);
}
...
...
application/model/PushFeed.php
View file @
e132603f
...
...
@@ -64,7 +64,7 @@ class PushFeed extends BaseModel
public
function
getListAgent
(
$pageNo
=
1
,
$pageSize
=
15
,
$order_
=
'id desc'
,
$field
=
''
,
$params
=
''
)
{
return
$this
->
field
(
$field
)
->
alias
(
'a'
)
->
join
(
'a_agents b'
,
'a.
us
er_id = b.id'
,
'left'
)
->
join
(
'a_agents b'
,
'a.
publish
er_id = b.id'
,
'left'
)
->
where
(
$params
)
->
order
(
$order_
)
->
limit
(
$pageSize
)
...
...
@@ -78,7 +78,7 @@ class PushFeed extends BaseModel
*/
public
function
getListAgentTotal
(
$params
)
{
return
$this
->
alias
(
'a'
)
->
join
(
'a_agents b'
,
'a.
us
er_id = b.id'
,
'left'
)
->
join
(
'a_agents b'
,
'a.
publish
er_id = b.id'
,
'left'
)
->
where
(
$params
)
->
count
();
}
...
...
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