Commit 213e2cc8 authored by hujun's avatar hujun

1

parent 0c43609b
......@@ -172,10 +172,10 @@ class Basic extends Controller
//处理店长权限
if (!$is_auth) {
$agent = new GHousesToAgents();
$where['houses_id'] = $this->params['id'];
$where['type'] = 2;
$where['is_del'] = 0;
$store_id_arr = $agent->getAgentHouseOne('store_id', $where);
$where['a.houses_id'] = $this->params['id'];
$where['a.type'] = 2;
$where['a.is_del'] = 0;
$store_id_arr = $agent->getAgentsHouseField('b.store_id', $where);
if (!empty($store_id_arr)) {
$store_id = implode(',', array_unique($store_id_arr));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment