1
This commit is contained in:
parent
f082614631
commit
e1893f64a3
@ -171,9 +171,6 @@ class CancelUnInquiryOrdersDelayDirectConsumer extends ConsumerMessage
|
|||||||
$MessagePush = new MessagePush($order_inquiry['user_id'],$order_inquiry['order_inquiry_id']);
|
$MessagePush = new MessagePush($order_inquiry['user_id'],$order_inquiry['order_inquiry_id']);
|
||||||
$MessagePush->patientNoInquiry();
|
$MessagePush->patientNoInquiry();
|
||||||
|
|
||||||
// 发送站内、订阅、短信消息-问诊服务退款成功
|
|
||||||
$MessagePush->refundInquirySuccess();
|
|
||||||
|
|
||||||
Log::getInstance()->info("取消未接诊问诊订单成功,发送消息成功");
|
Log::getInstance()->info("取消未接诊问诊订单成功,发送消息成功");
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
// 验证失败
|
// 验证失败
|
||||||
|
|||||||
@ -21,6 +21,7 @@ use App\Model\UserDoctor;
|
|||||||
use App\Model\UserPatient;
|
use App\Model\UserPatient;
|
||||||
use App\Services\BaseService;
|
use App\Services\BaseService;
|
||||||
use App\Services\ImService;
|
use App\Services\ImService;
|
||||||
|
use App\Services\MessagePush;
|
||||||
use App\Utils\Log;
|
use App\Utils\Log;
|
||||||
use Extend\TencentIm\Account;
|
use Extend\TencentIm\Account;
|
||||||
use Extend\TencentIm\Message;
|
use Extend\TencentIm\Message;
|
||||||
@ -283,10 +284,29 @@ class CallBackController extends AbstractController
|
|||||||
return $this->wxPayErrorReturn($e->getMessage());
|
return $this->wxPayErrorReturn($e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
Log::getInstance()->info("微信退款回调处理成功");
|
Log::getInstance()->info("微信退款回调处理成功,推送消息");
|
||||||
|
|
||||||
// 发送短信消息
|
// 发送短信消息
|
||||||
|
try {
|
||||||
|
$MessagePush = new MessagePush($order_inquiry['user_id'],$order_inquiry['order_inquiry_id']);
|
||||||
|
|
||||||
|
// 取消订单原因(1:医生未接诊 2:主动取消 3:无可分配医生 4:客服取消 5:支付超时)
|
||||||
|
if ($order_inquiry['cancel_reason'] == 1){
|
||||||
|
|
||||||
|
} elseif ($order_inquiry['cancel_reason'] == 2){
|
||||||
|
|
||||||
|
} elseif ($order_inquiry['cancel_reason'] == 3){
|
||||||
|
|
||||||
|
} elseif ($order_inquiry['cancel_reason'] == 4){
|
||||||
|
|
||||||
|
} elseif ($order_inquiry['cancel_reason'] == 5){
|
||||||
|
|
||||||
|
}
|
||||||
|
}catch (\Exception $e) {
|
||||||
|
// 验证失败
|
||||||
|
Log::getInstance()->error("微信退款回调处理成功,推送消息失败:" . $e->getMessage());
|
||||||
|
return $server->serve();
|
||||||
|
}
|
||||||
return $server->serve();
|
return $server->serve();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -881,6 +881,8 @@ class InquiryService extends BaseService
|
|||||||
* @param string|int $cancel_reason 取消订单原因(1:医生未接诊 2:主动取消 3:无可分配医生 4:客服取消 5:支付超时)
|
* @param string|int $cancel_reason 取消订单原因(1:医生未接诊 2:主动取消 3:无可分配医生 4:客服取消 5:支付超时)
|
||||||
* @param string|int $cancel_remarks 取消订单备注
|
* @param string|int $cancel_remarks 取消订单备注
|
||||||
* @return array
|
* @return array
|
||||||
|
* @throws ContainerExceptionInterface
|
||||||
|
* @throws NotFoundExceptionInterface
|
||||||
*/
|
*/
|
||||||
public function cancelUnpayInquiryOrder(string|int $order_no, string|int $cancel_reason, string|int $cancel_remarks): array
|
public function cancelUnpayInquiryOrder(string|int $order_no, string|int $cancel_reason, string|int $cancel_remarks): array
|
||||||
{
|
{
|
||||||
|
|||||||
@ -812,7 +812,7 @@ class PatientOrderService extends BaseService
|
|||||||
|
|
||||||
// 发送IM消息-等待医生接诊
|
// 发送IM消息-等待医生接诊
|
||||||
$imService = new ImService();
|
$imService = new ImService();
|
||||||
$imService->waitDoctorInquiry($order_inquiry,$user_info['user_id'],$order_inquiry['user_id']);
|
$imService->waitDoctorInquiry($order_inquiry,$user_doctor['user_id'],$order_inquiry['user_id']);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user