Browse Source

tv问诊下订单

lizhen_gitee 9 months ago
parent
commit
db41600bbc
1 changed files with 5 additions and 3 deletions
  1. 5 3
      application/api/controller/tvuser/Wenzhen.php

+ 5 - 3
application/api/controller/tvuser/Wenzhen.php

@@ -81,9 +81,11 @@ class Wenzhen extends Api
         $doctor_id = input('doctor_id',0);
         $ordertype = 2;
 
-        $book_date = input('book_date',0); //2024-05-05
-        $book_hour = input('book_time',0); //10:00
-        $book_time = strtotime($book_date.' '.$book_hour);
+        $book_time = input('book_time','');
+        if(empty($book_time)){
+            $this->error('没有选择预约时间');
+        }
+        $book_time = strtotime($book_time);
 
 
         $auth_id = $this->auth->id;