lizhen_gitee пре 1 недеља
родитељ
комит
2e8515e204
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      application/company/controller/Maintain.php

+ 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();