Browse Source

支付

master
jianglong 3 years ago
parent
commit
e2e1b0d253
  1. 2
      app/common/logic/PayNotifyLogic.php
  2. 2
      app/common/server/WeChatPayServer.php

2
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 = Resource::where('id', $item['org_id'])->find();
Resource::where('id', $item['org_id'])->inc('sales_num', 1)->update(); Resource::where('id', $item['org_id'])->inc('sales_num', 1)->update();

2
app/common/server/WeChatPayServer.php

@ -106,7 +106,7 @@ class WeChatPayServer
$app = Factory::payment($config); $app = Factory::payment($config);
$attributes = self::getAttributes($from, $order, $order_source, $auth, $notify_url); $attributes = self::getAttributes($from, $order, $order_source, $auth, $notify_url);
var_dump($attributes);die;
$result = $app->order->unify($attributes); $result = $app->order->unify($attributes);
if ($result['return_code'] == 'SUCCESS' && $result['result_code'] == 'SUCCESS') { if ($result['return_code'] == 'SUCCESS' && $result['result_code'] == 'SUCCESS') {

Loading…
Cancel
Save