Zory 1 долоо хоног өмнө
parent
commit
ac5acebf68

+ 1 - 1
app/controller/mini/Notify.php

@@ -63,7 +63,7 @@ class Notify extends Base
                 case "life_trade_certificate_notify": // 退款
                 case "life_trade_certificate_notify": // 退款
                     $resp = json_decode($param['content'], true);
                     $resp = json_decode($param['content'], true);
                     if ($resp['action'] == "refund_success") {
                     if ($resp['action'] == "refund_success") {
-                        $order = (new SaasOrderLife)->where("order_id",$resp['certificate']['order_id'])->findOrEmpty();
+                        $order = (new SaasOrderLife)->where("certificate_id",$resp['certificate']['certificate_id'])->findOrEmpty();
                         if (!$order->isEmpty()) {
                         if (!$order->isEmpty()) {
                             $order->status = 4;
                             $order->status = 4;
                             $order->refund_at = getDateFull();
                             $order->refund_at = getDateFull();