...
|
...
|
@@ -305,7 +305,7 @@ class Course extends Api |
|
|
|
|
|
//查询评价
|
|
|
$star = new \app\admin\model\CourseSignStart();
|
|
|
$star1 = $star->with('user')->where(['course_id'=>$id])->order('create_time','desc')->select();
|
|
|
$star1 = $star->with('user')->where(['course_id'=>$id,'status'=>'true'])->order('create_time','desc')->select();
|
|
|
foreach ($star1 as &$k){
|
|
|
$banner = explode(",", $k['pic']);
|
|
|
foreach ($banner as &$v){
|
...
|
...
|
@@ -318,7 +318,7 @@ class Course extends Api |
|
|
unset($k);
|
|
|
//查询评价
|
|
|
$star = new \app\admin\model\CourseSignStartSet();
|
|
|
$star2 = $star->where(['course_id'=>$id])->order('create_time','desc')->select();
|
|
|
$star2 = $star->where(['course_id'=>$id,'status'=>'true'])->order('create_time','desc')->select();
|
|
|
foreach ($star2 as &$kk){
|
|
|
$banner = explode(",", $kk['pic']);
|
|
|
foreach ($banner as &$vv){
|
...
|
...
|
@@ -435,6 +435,7 @@ class Course extends Api |
|
|
'store_id' => $sign['store_id'],
|
|
|
'course_id' => $sign['course_id'],
|
|
|
'create_time' => date('Y-m-d H:i:s'),
|
|
|
'status' => 'false',
|
|
|
];
|
|
|
|
|
|
$Star = new \app\admin\model\CourseSignStart();
|
...
|
...
|
|