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