作者 chencheng

123

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