xiaoyu 2 年之前
父节点
当前提交
f2c4bfda32
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      helper/rbridge/fulu/Bridge.php
  2. 2 2
      helper/rbridge/fulu/config.php

+ 2 - 2
helper/rbridge/fulu/Bridge.php

@@ -52,7 +52,7 @@ class Bridge implements IBridge
 
         $input = [ 'mchid' => $mchid,
             'buyer_id' => $userid,
-            'amount' => $params['ChargeValue'],
+            'amount' => $params['SupProductFaceValue'],
             'card_no' => $params['ChargeAccount'],
             'mch_order' => $params['Id'],
             'notify_url' => config::MCH_NOTIFY_URL];
@@ -71,9 +71,9 @@ class Bridge implements IBridge
     {
         $proxy = new refill_proxy(config::MCH_KEY);
         [$verify, $data] = $proxy->notify($params);
-        $mchid = $data['mchid'];
 
         if ($verify) {
+            $mchid = $data['mchid'];
             $mch_ordersn = $data['order_sn'];
             $body = $this->notify_body($data);
 

+ 2 - 2
helper/rbridge/fulu/config.php

@@ -4,8 +4,8 @@ namespace rbridge\fulu;
 
 class config
 {
-    const DEFAULT_MCHID = 10214;
-    const MCH_KEY  = 'ad395b51c6f06a59bc30a8759bfd49bd';
+    const DEFAULT_MCHID = 10299;
+    const MCH_KEY  = '';
     const MCH_NOTIFY_URL = 'fulu';
 
     const AES_IV = '1111111111111111';