|
@@ -9,6 +9,7 @@ use App\Models\Order;
|
|
use App\Models\OrderPatient;
|
|
use App\Models\OrderPatient;
|
|
use App\Models\Patient;
|
|
use App\Models\Patient;
|
|
use App\Models\User;
|
|
use App\Models\User;
|
|
|
|
+use phpDocumentor\Reflection\Types\String_;
|
|
|
|
|
|
class AppiontController extends Controller
|
|
class AppiontController extends Controller
|
|
{
|
|
{
|
|
@@ -55,7 +56,6 @@ class AppiontController extends Controller
|
|
'allow_post_ticket'=>'0',
|
|
'allow_post_ticket'=>'0',
|
|
'reserve_name'=>''
|
|
'reserve_name'=>''
|
|
];
|
|
];
|
|
-
|
|
|
|
if(request()->isMethod('post')){
|
|
if(request()->isMethod('post')){
|
|
$defaulRes = ['server_handle_result'=>'0','tip_msg'=>'没有排号'];
|
|
$defaulRes = ['server_handle_result'=>'0','tip_msg'=>'没有排号'];
|
|
if(empty($data['orderId'])){
|
|
if(empty($data['orderId'])){
|
|
@@ -64,7 +64,7 @@ class AppiontController extends Controller
|
|
}
|
|
}
|
|
|
|
|
|
if($data['reqNo']) {
|
|
if($data['reqNo']) {
|
|
- Order::where('id',$data['orderId'])->update(['is_ticket'=>1]);
|
|
|
|
|
|
+ Order::where('id',intval($data['orderId']))->update(['is_ticket'=>1]);
|
|
$defaulRes['server_handle_result'] = '1';
|
|
$defaulRes['server_handle_result'] = '1';
|
|
$defaulRes['tip_msg'] = 'ok';
|
|
$defaulRes['tip_msg'] = 'ok';
|
|
}
|
|
}
|
|
@@ -124,7 +124,7 @@ class AppiontController extends Controller
|
|
}
|
|
}
|
|
$order = $order_list->toArray();
|
|
$order = $order_list->toArray();
|
|
|
|
|
|
- $defaulRes['orderId'] = $order['id'];
|
|
|
|
|
|
+ $defaulRes['orderId'] = strval($order['id']);
|
|
$defaulRes['server_handle_result'] = '1';
|
|
$defaulRes['server_handle_result'] = '1';
|
|
if( $order['is_ticket'] == 0 && !empty($order['order_patient'])){
|
|
if( $order['is_ticket'] == 0 && !empty($order['order_patient'])){
|
|
$start = intval($order['order_patient']['appoint_start_time']);
|
|
$start = intval($order['order_patient']['appoint_start_time']);
|