Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sunac-quanmin
Overview
Overview
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
HTML5-李恒逸
sunac-quanmin
Commits
e7ec7db9
Commit
e7ec7db9
authored
Jun 27, 2017
by
html5-李恒逸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
渠道楼盘问题
parent
16b13259
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
channeladmin.php
html/application/controllers/admin/channeladmin.php
+6
-3
No files found.
html/application/controllers/admin/channeladmin.php
View file @
e7ec7db9
...
...
@@ -135,8 +135,11 @@ class Channeladmin extends CI_Controller
//修改当前渠道的上级
$parentId
=
$this
->
input
->
post
();
$edit_channel
=
$this
->
channel
->
get
(
array
(
'id'
=>
$channelId
));
$user
=
$this
->
manager
->
get
(
array
(
'id'
=>
$edit_channel
[
'manager_id'
]));
$this
->
data
[
'data'
]
=
$user
;
if
(
!
empty
(
$parentId
)){
if
(
$parentId
[
'parent_id'
]
==
''
&&
$parentId
[
'manager_pwd'
]
==
''
&&
$parentId
[
'ag_pwd'
]
==
''
){
if
(
$parentId
[
'parent_id'
]
==
''
&&
$parentId
[
'manager_pwd'
]
==
''
&&
$parentId
[
'ag_pwd'
]
==
''
&&
$parentId
[
'region_id'
]
==
''
&&
$parentId
[
'building_id'
]
==
''
){
alert_redirect
(
site_url
(
'admin/channeladmin/index'
),
'您未作出修改'
);
return
;
}
...
...
@@ -149,13 +152,13 @@ class Channeladmin extends CI_Controller
$parentId
[
'region_id'
]
=
implode
(
','
,
$this
->
input
->
post
(
'region_id'
));
//地区
$data1
=
array
();
$data1
[
'region_id'
]
=
$parentId
[
'region_id'
];
$this
->
channel
->
update
(
array
(
'id'
=>
$parentId
[
'channel
_id'
]),
$data1
);
$this
->
manager
->
update
(
array
(
'id'
=>
$edit_channel
[
'manager
_id'
]),
$data1
);
}
if
(
$this
->
input
->
post
(
'building_id'
))
{
$parentId
[
'building_id'
]
=
implode
(
','
,
$this
->
input
->
post
(
'building_id'
));
//项目
$data1
=
array
();
$data1
[
'building_id'
]
=
$parentId
[
'building_id'
];
$this
->
channel
->
update
(
array
(
'id'
=>
$parentId
[
'channel
_id'
]),
$data1
);
$this
->
manager
->
update
(
array
(
'id'
=>
$edit_channel
[
'manager
_id'
]),
$data1
);
}
if
(
$parentId
[
'manager_pwd'
]
!=
''
&&
$parentId
[
'ag_pwd'
]
!=
''
){
...
...
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