diff --git a/app/Services/DoctorAccountService.php b/app/Services/DoctorAccountService.php index 2d14ff2..c25e0ef 100644 --- a/app/Services/DoctorAccountService.php +++ b/app/Services/DoctorAccountService.php @@ -70,9 +70,9 @@ class DoctorAccountService extends BaseService } $result = array(); - $result['balance_account'] = $balance_account; // 账户余额 - $result['amount_total_month'] = $amount_total_month; // 月余额 - $result['withdrawal_amount_month'] = $withdrawal_amount_month; // 月已提现金额 + $result['balance_account'] = ceil($balance_account * 0.75 * 100) / 100;; // 账户余额 + $result['amount_total_month'] = ceil($amount_total_month * 0.75 * 100) / 100; // 月余额 + $result['withdrawal_amount_month'] = ceil($withdrawal_amount_month * 0.75 * 100) / 100; // 月已提现金额 $result['bill'] = $bill; // 账单 return success($result); diff --git a/app/Services/InquiryService.php b/app/Services/InquiryService.php index 78b8a04..86cb2d2 100644 --- a/app/Services/InquiryService.php +++ b/app/Services/InquiryService.php @@ -944,12 +944,15 @@ class InquiryService extends BaseService ]; $result = $WechatPay->refund($options); + dump($result); // 处理订单退款状态 // 问诊订单退款状态(0:无退款 1:申请退款 2:退款中 3:退款成功 4:拒绝退款 5:退款关闭) + $success_time = ""; if ($result['status'] == "SUCCESS") { // 退款成功 $inquiry_refund_status = 3; + $success_time = $result['success_time']; } elseif ($result['status'] == "CLOSED") { // 退款关闭 $inquiry_refund_status = 5; @@ -964,7 +967,7 @@ class InquiryService extends BaseService } $refund_id = $result['refund_id']; - $success_time = $result['success_time']; + }else{ // 模拟退款 $inquiry_refund_status = 3; diff --git a/app/Services/UserDoctorService.php b/app/Services/UserDoctorService.php index be206b3..78124a3 100644 --- a/app/Services/UserDoctorService.php +++ b/app/Services/UserDoctorService.php @@ -1377,7 +1377,7 @@ class UserDoctorService extends BaseService // 消息内容 $message_content_data = array(); $message_content_data['message_type'] = 6; - $message_content_data['title'] = "处方已开具"; + $message_content_data['title'] = "药师审核中"; $message_content_data['desc'] = ""; $message_content_data['data']['order_inquiry_id'] = (string)$order_inquiry['order_inquiry_id']; $message_content_data['data']['order_prescription_id'] = (string)$order_prescription['order_prescription_id'];