Commit 2e9b0e37 authored by zhuwei's avatar zhuwei

1

parent aaa47d5b
......@@ -61,10 +61,8 @@ class Performance extends Basic
$result["is_boss"] = 0;
$vip = new VipService();//0:有权限 1:无权限
$vip_house = $vip->checkRule($this->agentId, 'boss');
if($vip_house == 1){
$result["is_boss"] = 1;
}
$result["is_boss"]= $vip->checkRule($params["agent_id"], 'boss');
return $this->response("200", "request success", $result);
}
return $this->response("200", "request null");
......
......@@ -138,6 +138,7 @@ class VipService
$rules_arr = explode(',', $rules);
$result = 1;
if (in_array($auth_rule_id, $rules_arr)) {
$result = 0;
}
......
......@@ -38,7 +38,6 @@ class CostParameter extends Basic
$this->m_store = new AStore();
$this->m_store_data = new FStoreData();
$this->m_company_data = new FCompanyData();
}
......@@ -651,7 +650,6 @@ class CostParameter extends Basic
$this->saveStoreData($v);
}
}
// $this->saveStoreData($v);
return true;
}
......
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