소스 검색

维保订单详情

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