浏览代码

维保订单详情

lizhen_gitee 4 天之前
父节点
当前提交
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();