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
20ab829a
Commit
20ab829a
authored
Jun 14, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公告
parent
96cd1b8e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
Feed.php
application/api_broker/controller/Feed.php
+2
-2
Notice.php
application/index/controller/Notice.php
+1
-1
PushFeed.php
application/model/PushFeed.php
+5
-2
No files found.
application/api_broker/controller/Feed.php
View file @
20ab829a
...
...
@@ -33,8 +33,8 @@ class Feed extends Basic
$where_0
[
'type'
]
=
1
;
$where_1
[
'status'
]
=
0
;
$where_1
[
'type'
]
=
0
;
$data
[
0
]
=
$push
->
get
List
(
1
,
1
,
'id DESC'
,
$field
,
$where_0
);
$data
[
1
]
=
$push
->
get
List
(
1
,
1
,
'id DESC'
,
$field
,
$where_1
);
$data
[
0
]
=
$push
->
get
FeedInfo
(
$field
,
$where_0
,
'id desc'
);
$data
[
1
]
=
$push
->
get
FeedInfo
(
$field
,
$where_1
,
'id desc'
);
}
else
{
//列表页
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
...
...
application/index/controller/Notice.php
View file @
20ab829a
...
...
@@ -87,7 +87,7 @@ class Notice extends Basic
$num
=
$this
->
m_push
->
editData
(
$data
);
if
(
$num
>
0
)
{
return
$this
->
response
(
101
,
'
内容为空
!'
);
return
$this
->
response
(
101
,
'
新增公告失败
!'
);
}
return
$this
->
response
(
200
,
'新增成功!'
);
...
...
application/model/PushFeed.php
View file @
20ab829a
...
...
@@ -37,14 +37,16 @@ class PushFeed extends BaseModel
*
* @param string $field
* @param string $params
* @return false|\PDOStatement|string|\think\Collection
* @param string $order
* @return array|false|\PDOStatement|string|\think\Model
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getFeedInfo
(
$field
=
''
,
$params
=
''
)
{
public
function
getFeedInfo
(
$field
=
''
,
$params
=
''
,
$order
=
'id ASC'
)
{
return
$this
->
field
(
$field
)
->
where
(
$params
)
->
order
(
$order
)
->
find
();
}
}
\ 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