|
|
|
|
@ -4,6 +4,7 @@ namespace App\Http\Controllers\API\H5;
|
|
|
|
|
|
|
|
|
|
use App\Http\Controllers\Controller;
|
|
|
|
|
use App\Http\Controllers\API\PEISApiController;
|
|
|
|
|
use App\Lib\Tools;
|
|
|
|
|
use App\Services\ConfigService;
|
|
|
|
|
use DateTime;
|
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
@ -350,6 +351,7 @@ class OrderController extends Controller
|
|
|
|
|
'plan_number'=>$planInfo->plan_number,
|
|
|
|
|
'appointment_date'=>$planInfo->date,
|
|
|
|
|
'appointment_time'=>$planInfo->time,
|
|
|
|
|
'doctor'=>isset($doctor)?$doctor:null,
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
return \Yz::Return(true,"操作完成",[]);
|
|
|
|
|
@ -470,10 +472,14 @@ class OrderController extends Controller
|
|
|
|
|
];
|
|
|
|
|
$info = $peis::Post('预约时段修改', $order_info->hospital_id,$dat);
|
|
|
|
|
}
|
|
|
|
|
DB::table('orders')->where(['order_number' => $order_number])->update([
|
|
|
|
|
$u=DB::table('orders')->where(['order_number' => $order_number])->update([
|
|
|
|
|
'appointment_number' => $create_appointment['data'][0][0],
|
|
|
|
|
'appointment_back_info' => json_encode($appointment_info['data'][0], JSON_UNESCAPED_UNICODE)
|
|
|
|
|
]);
|
|
|
|
|
$is_sendMsg=DB::table('configs')->where(['label' => '预约完成短信通知'])->first();
|
|
|
|
|
if(!!$is_sendMsg and $is_sendMsg->value==1){
|
|
|
|
|
Tools::SendMsg($cha->hospital_id,$cha->phone,$cha->name,$cha->appointment_date.' '.substr($cha->appointment_time, 0, 5));
|
|
|
|
|
}
|
|
|
|
|
return ['status' => true, 'msg' => "完成"];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|