|
|
|
@ -482,7 +482,7 @@ class AuthManagerController extends AdminController{
|
|
|
|
|
if ($AuthGroup->where("id = {$gid}")->save(array('data_empower_type'=>$data_empower_type,'data_president'=>$promoteData))) {
|
|
|
|
|
$this->success('操作成功',U('AuthManager/index'));
|
|
|
|
|
} else {
|
|
|
|
|
$this->error('操作失败');
|
|
|
|
|
$this->error('操作失败,请改变成员');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -491,6 +491,8 @@ class AuthManagerController extends AdminController{
|
|
|
|
|
$promoteData = M('promote','tab_')->field('id as value,account as title')->where(array('level'=>1,'chain'=>'/'))->select();
|
|
|
|
|
$data_president = M('AuthGroup')->field('data_president')->where(array('id'=>$_REQUEST['group_id']))->find();
|
|
|
|
|
|
|
|
|
|
$promoteData = array_merge([0=>['value'=>'-1','title'=>'官方渠道']],$promoteData);
|
|
|
|
|
|
|
|
|
|
$returnData = array('data_president'=>$data_president['data_president'],'list'=>$promoteData);
|
|
|
|
|
|
|
|
|
|
$this->ajaxReturn(json_encode($returnData));
|
|
|
|
|