Tree 1 месяц назад
Родитель
Сommit
03c3cde59f

+ 1 - 1
app/Http/Controllers/Api/WDPayController.php

@@ -99,7 +99,7 @@ class WDPayController implements PayMentInterFace
         try {
             $redis = Redis::connection();
             $ret = $logic->notify($post);
-            if ($ret == 'success') {
+            if ($ret == '{"msg":"success","code":200}') {
                 $redis->set("wdpay_notify_" . $order_sn, $order_sn, 3600 * 24);
             }
             return $ret;

+ 3 - 2
app/Http/logic/api/WDPayLogic.php

@@ -153,7 +153,8 @@ class WDPayLogic extends BaseApiLogic
             // 订单已处理,直接返回成功
             if ((!empty($order->pay_at) || !empty($order->finished_at))) {
                 Util::WriteLog('WDPay', '订单已处理: ' . $order_sn);
-                return 'success';
+//                return 'success';
+                return '{"msg":"success","code":200}';
             }
 
             $body = [
@@ -218,7 +219,7 @@ class WDPayLogic extends BaseApiLogic
                     
                 default:          // 其他状态(不应该出现)
                     Util::WriteLog('WDPay', "订单未知状态: {$order_sn}, 状态: {$ordStatus}");
-                    return 'success';  // 返回成功
+                    return '{"msg":"success","code":200}';  // 返回成功
             }
 
             $order_up = DB::connection('write')->table('agent.dbo.order')

+ 1 - 1
config/pay.php

@@ -60,7 +60,7 @@ return [
         'wayCode' => 'cashapp',
         'signType' => 'MD5',
         'payin_fee' => 0.15,
-        'notify' => env('APP_URL', '').'/api/payout_notify/notify',
+        'cashNotify' => env('APP_URL', '').'/api/wdpay/payout_notify',
         'return' => env('APP_URL', '').'/api/wdpay/return',
     ],
 ];