Beispiel #1
0
 /**
  * 用户预约
  * @param $appoint appointmentTable 对象
  * #param $code 验证码
  */
 public function insert_appoint($appoint, $code)
 {
     $appointment = new AppointmentModule();
     $check_info = $this->get_by_mobile($appoint->mobile, $code);
     if ($check_info == 1000) {
         // 没有查询到
         return false;
     } else {
         return $appointment->insert_appoint($appoint);
     }
 }