Просмотр исходного кода

[智价云] 编辑公司信息修复

tangyuanwang 12 часов назад
Родитель
Сommit
bbdc0a8149
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Http/Controllers/Manager/WashConfig/ViolationStore.php

+ 1 - 1
app/Http/Controllers/Manager/WashConfig/ViolationStore.php

@@ -263,7 +263,7 @@ class ViolationStore extends Controller
         $ViolationStore = $ViolationStoreModel->where($where)->first();
         if (!$ViolationStore) return json_send(['code' => 'error', 'msg' => '记录不存在']);
         $oldData = $ViolationStore->toarray();
-        $all_data['company_id'] = $company_id;
+        $all_data['company_id'] =  $map['company_id'];
         $result =  $ViolationStoreModel->updateViolationStore($ViolationStore, $all_data);
         // 如果操作失败
         if (!$result)     return json_send(['code' => 'error', 'msg' => '修改失败']);