Commit 2e9b0e37 authored by zhuwei's avatar zhuwei

1

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