Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
10 years ago
Commit
54fc0013c0c1a4ffbad78aab50bac974d81d8ed8
1 parent
7f228bc2
资讯
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
website/service/News.class.php
website/service/News.class.php
View file @
54fc001
...
...
@@ -25,8 +25,16 @@ class Service_News extends Lib_Service
$column
=
Util_Utils_SqlString
::
mergeInsertFields
(
$data
);
$value
=
Util_Utils_SqlString
::
mergeInsertString
(
$data
);
$up
=
Util_Utils_SqlString
::
mergeSqlUpstring
(
$data
);
if
(
isset
(
$data
[
'id'
]))
{
$func
=
'status'
;
}
else
{
$func
=
'lastInsertId'
;
}
$replaces
=
array
(
'column'
=>
$column
,
'value'
=>
$value
,
'up'
=>
$up
)
;
$status
=
self
::
service
(
self
::
ROUTER
)
->
cache
(
false
)
->
insert
(
'setInfo'
,
$data
,
$replaces
)
->
status
();
$status
=
self
::
service
(
self
::
ROUTER
)
->
cache
(
false
)
->
insert
(
'setInfo'
,
$data
,
$replaces
)
->
$func
();
if
(
$status
)
{
self
::
service
(
self
::
ROUTER
)
->
delTags
(
self
::
$_tag
);
...
...
Please
register
or
login
to post a comment