lizhen_gitee 1 týždeň pred
rodič
commit
2e8515e204

+ 2 - 2
application/company/controller/Maintain.php

@@ -428,8 +428,8 @@ class Maintain extends Apic
             ->where('mt.id',$id)
             ->find();
 
-        if($info['company_id'] != $this->auth->company_id){
-            //$this->error('没找到订单');
+        if($this->auth->company_id != 1 && $info['company_id'] != $this->auth->company_id){
+            $this->error('没找到订单');
         }
 
         $maintain_model = new Maintainmodel();