liuyuanhang 4 years ago
parent
commit
8e561750f0
2 changed files with 412 additions and 513 deletions
  1. 3 1
      app/Helpers/functions.php
  2. 409 512
      app/Http/Controllers/Api/V2/DoctorController.php

+ 3 - 1
app/Helpers/functions.php

xqd
@@ -248,7 +248,9 @@ if (!function_exists('getWeek')){
      */
     function getWeek($date){
 
-        $weekday= "今天是星期" . mb_substr( "日一二三四五六",$date,1,"utf-8" );
+        $weekarray=array("周日","周一","周二","周三","周四","周五","周六");
+        $weekday['week'] = $weekarray[date("w",strtotime($date))];
+        $weekday['flag'] = date("w",strtotime($date));
         return $weekday ;
     }
 }

File diff suppressed because it is too large
+ 409 - 512
app/Http/Controllers/Api/V2/DoctorController.php


Some files were not shown because too many files changed in this diff