1
This commit is contained in:
@@ -21,6 +21,7 @@ use App\Model\UserDoctor;
|
||||
use App\Model\UserPatient;
|
||||
use App\Services\BaseService;
|
||||
use App\Services\ImService;
|
||||
use App\Services\MessagePush;
|
||||
use App\Utils\Log;
|
||||
use Extend\TencentIm\Account;
|
||||
use Extend\TencentIm\Message;
|
||||
@@ -283,10 +284,29 @@ class CallBackController extends AbstractController
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user