From e2e1b0d2536fd5ac1f3cf311291e4b50346126b2 Mon Sep 17 00:00:00 2001 From: jianglong Date: Tue, 30 May 2023 16:54:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/PayNotifyLogic.php | 2 +- app/common/server/WeChatPayServer.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php index c618084..20ae03b 100644 --- a/app/common/logic/PayNotifyLogic.php +++ b/app/common/logic/PayNotifyLogic.php @@ -225,7 +225,7 @@ class PayNotifyLogic } //用户会员卡支付完成后更新相关信息 - $item = OrderResource::where('id',$trade['id'])->find(); + $item = OrderResource::where('trade_id',$trade['id'])->find(); $resource = Resource::where('id', $item['org_id'])->find(); Resource::where('id', $item['org_id'])->inc('sales_num', 1)->update(); diff --git a/app/common/server/WeChatPayServer.php b/app/common/server/WeChatPayServer.php index 99e652e..0fe3cf1 100644 --- a/app/common/server/WeChatPayServer.php +++ b/app/common/server/WeChatPayServer.php @@ -106,7 +106,7 @@ class WeChatPayServer $app = Factory::payment($config); $attributes = self::getAttributes($from, $order, $order_source, $auth, $notify_url); - var_dump($attributes);die; + $result = $app->order->unify($attributes); if ($result['return_code'] == 'SUCCESS' && $result['result_code'] == 'SUCCESS') {