liugc 1 年間 前
コミット
9e891f6ffa
1 ファイル変更3 行追加7 行削除
  1. 3 7
      app/api/logic/IssueWorkLogic.php

+ 3 - 7
app/api/logic/IssueWorkLogic.php

@@ -146,18 +146,14 @@ class IssueWorkLogic extends BaseLogic
             if($issue->isEmpty()){
             if($issue->isEmpty()){
                 throw new Exception('投诉不存在');
                 throw new Exception('投诉不存在');
             }
             }
-            if($issue['responsible'] != 3){
-                throw new Exception('定责不可操作');
+            if($issue['issue_approval'] == 3){
+                throw new Exception('不可操作');
             }
             }
             $issue->issue_approval = 4;
             $issue->issue_approval = 4;
             $issue->complaint_status = 2;
             $issue->complaint_status = 2;
+            $issue->responsible = 3;
             $issue->finished_time = time();
             $issue->finished_time = time();
             $issue->save();
             $issue->save();
-
-            $return = ReturnWork::where('service_work_id',$issue->service_work_id)->findOrEmpty();
-            if(!$return->isEmpty()){
-                $return->return_status = 4;
-            }
             return [];
             return [];
         } catch (\Exception $e) {
         } catch (\Exception $e) {
             self::setError($e->getMessage());
             self::setError($e->getMessage());