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
0e86f4de
Commit
0e86f4de
authored
Sep 11, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公告
parent
f376d763
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
News.php
application/index/controller/News.php
+3
-1
Notice.php
application/index/controller/Notice.php
+5
-1
No files found.
application/index/controller/News.php
View file @
0e86f4de
...
@@ -110,7 +110,9 @@ class News extends Basic
...
@@ -110,7 +110,9 @@ class News extends Basic
$file_data
[
'new_id'
]
=
$id
;
$file_data
[
'new_id'
]
=
$id
;
$file_data
[
'type'
]
=
1
;
$file_data
[
'type'
]
=
1
;
$file_data
[
'status'
]
=
0
;
$file_data
[
'status'
]
=
0
;
$m_file
->
insertData
(
$file_data
);
if
(
!
empty
(
$file_data
[
'file_name'
]))
{
$m_file
->
insertData
(
$file_data
);
}
}
}
}
}
}
catch
(
\Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
...
...
application/index/controller/Notice.php
View file @
0e86f4de
...
@@ -111,7 +111,9 @@ class Notice extends Basic
...
@@ -111,7 +111,9 @@ class Notice extends Basic
$file_data
[
'new_id'
]
=
$id
;
$file_data
[
'new_id'
]
=
$id
;
$file_data
[
'type'
]
=
2
;
$file_data
[
'type'
]
=
2
;
$file_data
[
'status'
]
=
0
;
$file_data
[
'status'
]
=
0
;
$s_file
->
insertData
(
$file_data
);
if
(
!
empty
(
$file_data
[
'file_name'
]))
{
$s_file
->
insertData
(
$file_data
);
}
}
}
}
}
}
else
{
}
else
{
...
@@ -158,6 +160,8 @@ class Notice extends Basic
...
@@ -158,6 +160,8 @@ class Notice extends Basic
$num
=
$this
->
m_push
->
editData
([
'status'
=>
1
],
$this
->
params
[
'id'
]);
$num
=
$this
->
m_push
->
editData
([
'status'
=>
1
],
$this
->
params
[
'id'
]);
if
(
$num
>
0
)
{
if
(
$num
>
0
)
{
$m_sile
=
new
SFile
();
$m_sile
->
editData
([
'status'
=>
1
],
$this
->
params
[
'id'
],
'new_id'
);
return
$this
->
response
(
200
);
return
$this
->
response
(
200
);
}
else
{
}
else
{
return
$this
->
response
(
101
,
"删除失败!"
);
return
$this
->
response
(
101
,
"删除失败!"
);
...
...
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