Silent hace 7 años
padre
commit
063a6a7470
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      app/Http/Controllers/WeChat/ApiController.php

+ 2 - 0
app/Http/Controllers/WeChat/ApiController.php

xqd
@@ -297,6 +297,8 @@ class ApiController extends Controller
                     'teacher_id' => $student_course_teacher->teacher_id,
                     'student_id' => $student->id,
                 ]);
+            } else {
+                return response()->json(['status' => 'fail', 'info' => '评价不能为空']);
             }
         }