|
@@ -263,11 +263,13 @@ class Lesson extends Apic
|
|
|
|
|
|
//我的课时记录,点过名的
|
|
|
public function my_slot_history(){
|
|
|
- $date = input('date',date('Y-m-d'),'strtotime');
|
|
|
+ $date = strtotime(input('date',date('Y-m-01')));//月初
|
|
|
+ $date_end = strtotime('+1 month', $date) - 1;//月末
|
|
|
+
|
|
|
$cate_id = input('cate_id',0);
|
|
|
|
|
|
$where = [
|
|
|
- 'slot.starttime' => ['BETWEEN',[$date,$date+86399]],
|
|
|
+ 'slot.starttime' => ['BETWEEN',[$date,$date_end]],
|
|
|
'slot.status' => 20,
|
|
|
];
|
|
|
if($cate_id){
|