chuweiqiang hace 1 año
padre
commit
89a9280348
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      application/admin/controller/books/BooksSeries.php

+ 7 - 0
application/admin/controller/books/BooksSeries.php

@@ -209,6 +209,13 @@ class BooksSeries extends Backend
             return $this->view->fetch();
         }
         $params = $this->request->post();
+        if($params['status'] == 1){
+            $books = \app\admin\model\books\Books::where('series_id','in',$ids)->find();
+            if($books){
+                $this->error('该系列下还有绑定的教材 请修改后操作');
+            }
+        }
+
 //        $params = $this->request->post('row/a');
 //        if (empty($params)) {
 //            $this->error(__('Parameter %s can not be empty', ''));