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
5c869f05
Commit
5c869f05
authored
Dec 20, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公告标签
parent
b97ab206
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
Notice.php
application/index/controller/Notice.php
+4
-7
No files found.
application/index/controller/Notice.php
View file @
5c869f05
...
@@ -58,15 +58,11 @@ class Notice extends Basic
...
@@ -58,15 +58,11 @@ class Notice extends Basic
}
}
//302版本
//302版本
if
(
is_numeric
(
$this
->
params
[
'auth_group_id'
]))
{
if
(
is_numeric
(
$this
->
params
[
'from_type'
]))
{
if
(
$this
->
params
[
'auth_group_id'
]
==
1
){
$where
[
'a.from_type'
]
=
$this
->
params
[
'from_type'
];
$where
[
'b.auth_group_id'
]
=
2
;
}
else
{
$where
[
'b.auth_group_id'
]
=
array
(
'in'
,
'22,23,25,26'
);
}
}
}
$field
=
'a.id,a.title,a.content,a.create_time,a.create_time,b.auth_group_id,b.name'
;
$field
=
'a.id,a.title,a.content,a.create_time,a.create_time,
a.from_type,
b.auth_group_id,b.name'
;
$where
[
'a.status'
]
=
0
;
$where
[
'a.status'
]
=
0
;
$where
[
'a.type'
]
=
1
;
$where
[
'a.type'
]
=
1
;
...
@@ -107,6 +103,7 @@ class Notice extends Basic
...
@@ -107,6 +103,7 @@ class Notice extends Basic
$data
[
'agent_id'
]
=
-
1
;
$data
[
'agent_id'
]
=
-
1
;
$data
[
'steel_phone'
]
=
0
;
$data
[
'steel_phone'
]
=
0
;
$data
[
'type'
]
=
1
;
$data
[
'type'
]
=
1
;
$data
[
'from_type'
]
=
$this
->
params
[
'from_type'
];
$data
[
'annex_file_name'
]
=
$this
->
params
[
'annex_file_name'
];
$data
[
'annex_file_name'
]
=
$this
->
params
[
'annex_file_name'
];
$id
=
$this
->
m_push
->
addData
(
$data
);
$id
=
$this
->
m_push
->
addData
(
$data
);
...
...
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