修正问诊订单状态判断

This commit is contained in:
wucongxing 2023-03-08 11:56:11 +08:00
parent 1f83f44eed
commit 4cbb2f5307
3 changed files with 17 additions and 16 deletions

View File

@ -113,6 +113,7 @@ class AssignDoctorConsumer extends ConsumerMessage
$UserDoctorService = new UserDoctorService(); $UserDoctorService = new UserDoctorService();
$doctor_id = $UserDoctorService->getInquiryAssignDoctor($order_inquiry['inquiry_type']); $doctor_id = $UserDoctorService->getInquiryAssignDoctor($order_inquiry['inquiry_type']);
if (empty($doctor_id)){ if (empty($doctor_id)){
Db::rollBack();
Log::getInstance()->error("重回队列,目前没有合适医生"); Log::getInstance()->error("重回队列,目前没有合适医生");
$redis_value = $redis->get($redis_key); $redis_value = $redis->get($redis_key);
if (!empty($redis_value)){ if (!empty($redis_value)){

View File

@ -81,21 +81,21 @@ class UserController extends AbstractController
// dump($wx_info_data);die; // dump($wx_info_data);die;
// 发起支付 // 发起支付
// $out_trade_no = $this->request->input('out_trade_no'); $out_trade_no = $this->request->input('out_trade_no');
// $generator = $this->container->get(IdGeneratorInterface::class); $generator = $this->container->get(IdGeneratorInterface::class);
//
// $WechatPay = new WechatPay(1); $WechatPay = new WechatPay(1);
//
// // 获取预支付交易会话标识 // 获取预支付交易会话标识
// $total = 0.01 * 100; $total = 0.01 * 100;
// $prepay = $WechatPay->getJsapiPrepayId($out_trade_no,$total,"omgU35DlE-rxTAGgcBjOuc4xdcX8"); $prepay = $WechatPay->getJsapiPrepayId($out_trade_no,$total,"omgU35DlE-rxTAGgcBjOuc4xdcX8");
// if (empty($prepay)){ if (empty($prepay)){
// return fail(HttpEnumCode::SERVER_ERROR, "订单创建失败"); return fail(HttpEnumCode::SERVER_ERROR, "订单创建失败");
// } }
//
// // 获取小程序支付配置 // 获取小程序支付配置
// $pay_config = $WechatPay->getAppletsPayConfig($prepay['prepay_id']); $pay_config = $WechatPay->getAppletsPayConfig($prepay['prepay_id']);
// return $this->response->json($pay_config); return $this->response->json($pay_config);
// 发起退款 // 发起退款
// $WechatPay = new WechatPay(1); // $WechatPay = new WechatPay(1);

View File

@ -588,7 +588,7 @@ class InquiryService extends BaseService
} }
// 检测问诊订单状态 // 检测问诊订单状态
if (in_array($order_inquiry['inquiry_status'], [2, 3, 4, 5])) { if (!in_array($order_inquiry['inquiry_status'], [2, 3, 4, 5])) {
// 问诊订单状态1:待支付 2:待分配 3:待接诊 4:已接诊 5:已完成 6:已结束 7:已取消) // 问诊订单状态1:待支付 2:待分配 3:待接诊 4:已接诊 5:已完成 6:已结束 7:已取消)
throw new BusinessException("订单状态错误"); throw new BusinessException("订单状态错误");
} }