Forráskód Böngészése

当月有哪些日期

lizhen_gitee 1 éve
szülő
commit
8ca237b004
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      application/api/controller/Lesson.php

+ 3 - 1
application/api/controller/Lesson.php

@@ -100,12 +100,14 @@ class Lesson extends Api
             $idate = $year.'-'.$month.'-'.$j;
 
             $itime = strtotime($idate);
+            $week = $this->lang == 'en' ? date('D',$itime) : '周'.date('w',$itime);
+
             $i_data = [
                 'yeah' =>$year,
                 'month'=>$month,
                 'day'  => $j,
                 'date' => $idate,
-                'week' => date('w',$itime),
+                'week' => $week,
                 'is_today' => 0,
                 'slot_num' => 0,
             ];