作者 chencheng

123

... ... @@ -24,7 +24,7 @@ class Business extends Base
$postParam = $this->request->param();
$this->postParam = $postParam;
parent::_initialize();
$this->auth->id=3 ;//测试用
// $this->auth->id=3 ;//测试用
$postParam = $this->request->param();
$this->postParam = $postParam;
if (empty($postParam['store_id'])) {
... ... @@ -38,7 +38,7 @@ class Business extends Base
$this->store = $store;
$storewhere['verification_store_id']=$this->store_id;
$storewhere['user_id']=$this->auth->id;
$staff = Db::name("verification_staff")->where("verification_store_id", $this->store_id)->find();
$staff = Db::name("verification_staff")->where($storewhere)->find();
if (empty($staff)) {
$this->error("暂无权限!");
}
... ...