Silent há 6 anos atrás
pai
commit
f2149e13b5

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

@@ -459,6 +459,7 @@ class ApiController extends Controller
             $teachers = Teacher::all();
             $teachers = Teacher::all();
         } else {
         } else {
             $teacher_ids = StudentCourseTeacher::where('student_course_id', $student_course->id)->get()->pluck('teacher_id')->unique('teacher_id');
             $teacher_ids = StudentCourseTeacher::where('student_course_id', $student_course->id)->get()->pluck('teacher_id')->unique('teacher_id');
+            dd($teacher_ids);
             $teachers = Teacher::whereIn('id', $teacher_ids)->get();
             $teachers = Teacher::whereIn('id', $teacher_ids)->get();
         }
         }
         $titles = RemarkTitle::where('status', 2)->get();
         $titles = RemarkTitle::where('status', 2)->get();

+ 1 - 1
wechat/pages/rate/rate.wxml

@@ -1,6 +1,6 @@
 <form bindsubmit="formSubmit">
 <form bindsubmit="formSubmit">
   <view wx:for="{{ teachers }}" wx:for-item="out_item">
   <view wx:for="{{ teachers }}" wx:for-item="out_item">
-    <zan-panel title='课程名称:{{ course_name }}\n讲师姓名:{{ teacher }}'>
+    <zan-panel title='课程名称:{{ course_name }}\n讲师姓名:{{ out_item.name }}'>
       <view>
       <view>
         <view wx:for="{{ titles }}">
         <view wx:for="{{ titles }}">
           <zan-cell title="{{ item.name }}">
           <zan-cell title="{{ item.name }}">