Browse Source

维保订单详情

lizhen_gitee 6 ngày trước cách đây
mục cha
commit
2e8515e204
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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();