...
|
...
|
@@ -44,7 +44,6 @@ class Store extends Backend |
|
|
*/
|
|
|
public function index()
|
|
|
{
|
|
|
$group_id_arr = array_column($this->auth->getGroups(), 'group_id');
|
|
|
//当前是否为关联查询
|
|
|
$this->relationSearch = true;
|
|
|
//设置过滤方法
|
...
|
...
|
@@ -60,6 +59,7 @@ class Store extends Backend |
|
|
|
|
|
// 城市或区县代理
|
|
|
$where1 = [];
|
|
|
$group_id_arr = array_column($this->auth->getGroups(), 'group_id');
|
|
|
if(!in_array(1,$group_id_arr) && array_intersect([6,7],$group_id_arr)){
|
|
|
$area_arr = \app\admin\model\AdminArea::where('admin_id',$this->auth->id)->column('area');
|
|
|
// 城市管理员
|
...
|
...
|
@@ -110,6 +110,7 @@ class Store extends Backend |
|
|
}
|
|
|
// 城市或区县代理
|
|
|
$have_store_num = 0;
|
|
|
$group_id_arr = array_column($this->auth->getGroups(), 'group_id');
|
|
|
if(!in_array(1,$group_id_arr) && array_intersect([6,7],$group_id_arr)){
|
|
|
$have_store_num = 1;
|
|
|
}
|
...
|
...
|
|