预约失败的退款不调用思信

main
yanzai 12 months ago
parent c9911983a7
commit 2eb7cb2f74

@ -116,12 +116,17 @@ class PayController extends Controller
$person=DB::table('web_user_person')->where(['id' => $orderInfo->person_id])->first(); $person=DB::table('web_user_person')->where(['id' => $orderInfo->person_id])->first();
if(!$person) return \Yz::echoError1("用户不存在"); if(!$person) return \Yz::echoError1("用户不存在");
//调用思信取消,恢复号源 //调用思信取消,恢复号源
$ap = new OrderController(); if($orderInfo->appointment_number<>null and $orderInfo->appointment_number<>''){
$cancel = $ap->cancel_appointment($orderInfo->hospital_id, [ $ap = new OrderController();
'type' => $orderInfo->type, $cancel = $ap->cancel_appointment($orderInfo->hospital_id, [
'预约Id' => $orderInfo->appointment_number 'type' => $orderInfo->type,
]); '预约Id' => $orderInfo->appointment_number
if ($cancel['code'] != 0) return \Yz::echoError1("取消预约失败," . $cancel['message']); ]);
if ($cancel['code'] != 0) return \Yz::echoError1("取消预约失败," . $cancel['message']);
}else{
}
//如果有二线取消二线 //如果有二线取消二线
$yyid=6; $yyid=6;
if($orderInfo->hospital_id == 1){ if($orderInfo->hospital_id == 1){

@ -41,18 +41,18 @@ class TestController extends Controller
// ]); // ]);
// return \Yz::Return(true,"",['data'=>$res]); // return \Yz::Return(true,"",['data'=>$res]);
//退款------------------ //退款------------------
// $data = [ $data = [
// 'orderid' => '20241206135049910eRWC5N', 'orderid' => '20241223082331336avdQwL',
// 'refund_order_id' => 'T' . '20241206135049910eRWC5N', 'refund_order_id' => 'T' . '20241223082331336avdQwL',
// 'refund_amount' => 63610, 'refund_amount' => 156190,
// 'refund_reason' => "体检H5订单退款", 'refund_reason' => "体检H5订单退款",
// ]; ];
// $XCX = new XCXApiController(); $XCX = new XCXApiController();
// $res = $XCX::Post('订单退款', $data); $res = $XCX::Post('订单退款', $data);
// dd($res); dd($res);
// if ($res['data']['refund_state'] != 'SUCCESS') { if ($res['data']['refund_state'] != 'SUCCESS') {
// return \Yz::echoError1("退款失败" . $res['data']['refund_state']); return \Yz::echoError1("退款失败" . $res['data']['refund_state']);
// } }
//-------------- //--------------
// $aspnet=new AspNetZhuanController(); // $aspnet=new AspNetZhuanController();

Loading…
Cancel
Save