瀏覽代碼

sunguidong

zhangguidong 2 年之前
父節點
當前提交
417ac101de
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/pay/controller/Pay.php

+ 2 - 2
app/pay/controller/Pay.php

@@ -64,14 +64,14 @@ class Pay extends Controller
         if($is_xml) {
             $jsonXml = json_encode(simplexml_load_string($data, 'SimpleXMLElement', LIBXML_NOCDATA));
             $data = json_decode($jsonXml, true);
+            $data['pay_type']='wechatpay';
             Log::write('pay_notifiy:'.$jsonXml, 'notice');
         }
         else{
             $data = input();
+            $data['pay_type']='alipay';
             Log::write('pay_notifiy_pay:'.var_export($data,true), 'notice');
         }
-        $data = ['out_trade_no'=>'16654811397568'];
-
         event('OrderPayNotify', $data);
     }
     public function SupplierPayNotify()