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') {