|
|
|
@ -247,9 +247,9 @@ class TestResourceController extends BaseController
|
|
|
|
|
parent::_initialize();
|
|
|
|
|
$map['id'] = get_pid();
|
|
|
|
|
$pro = M("promote", "tab_")->where($map)->find();
|
|
|
|
|
if ($pro['parent_id']!=0&&!($pro['parent_id']>0&&$pro['grand_id']==0)) {
|
|
|
|
|
$this->error('无权操作!');
|
|
|
|
|
}
|
|
|
|
|
// if ($pro['parent_id']!=0&&!($pro['parent_id']>0&&$pro['grand_id']==0)) {
|
|
|
|
|
// $this->error('无权操作!');
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function index($p=0)
|
|
|
|
|