|
|
|
@ -170,14 +170,7 @@ class OrderService
|
|
|
|
//调用接口恢复积分和预存款
|
|
|
|
//调用接口恢复积分和预存款
|
|
|
|
$env=config('app.globals.Env');
|
|
|
|
$env=config('app.globals.Env');
|
|
|
|
|
|
|
|
|
|
|
|
if($orderInfo->appointment_number<>null and $orderInfo->appointment_number<>'' and strpos($orderInfo->source, '线下体检预约') !== false){
|
|
|
|
|
|
|
|
$ap = new OrderController();
|
|
|
|
|
|
|
|
$cancel = $ap->cancel_appointment($orderInfo->hospital_id, [
|
|
|
|
|
|
|
|
'type' => $orderInfo->type,
|
|
|
|
|
|
|
|
'预约Id' => $orderInfo->appointment_number
|
|
|
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
if ($cancel['code'] != 0) return ['status'=>false,'msg'=>"取消预约失败," . $cancel['message']];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$AspNet=new AspNetZhuanController();
|
|
|
|
$AspNet=new AspNetZhuanController();
|
|
|
|
$jifen_huifu_status=true;
|
|
|
|
$jifen_huifu_status=true;
|
|
|
|
@ -248,6 +241,18 @@ class OrderService
|
|
|
|
$up_plan = DB::table('plans')->where(['id' => $orderInfo->plan_id, 'status' => 2])->update([
|
|
|
|
$up_plan = DB::table('plans')->where(['id' => $orderInfo->plan_id, 'status' => 2])->update([
|
|
|
|
'status' => 1
|
|
|
|
'status' => 1
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
|
|
|
|
if($orderInfo->appointment_number<>null and $orderInfo->appointment_number<>'' and strpos($orderInfo->source, '线下体检预约') !== false){
|
|
|
|
|
|
|
|
$ap = new OrderController();
|
|
|
|
|
|
|
|
$cancel = $ap->cancel_appointment($orderInfo->hospital_id, [
|
|
|
|
|
|
|
|
'type' => $orderInfo->type,
|
|
|
|
|
|
|
|
'预约Id' => $orderInfo->appointment_number
|
|
|
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
$orderJson = json_encode($orderInfo, JSON_UNESCAPED_UNICODE);
|
|
|
|
|
|
|
|
$insert=DB::table('orders_delete')->insert(['order_info' =>$orderJson]);
|
|
|
|
|
|
|
|
if($insert){
|
|
|
|
|
|
|
|
DB::table('orders')->where(['id' => $orderInfo->id])->delete();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public function Refund($id,$yuanyin='')
|
|
|
|
public function Refund($id,$yuanyin='')
|
|
|
|
|