This commit is contained in:
aozhiwei 2019-08-19 17:12:55 +08:00
parent f2dd8a49c9
commit 26d0cb97be
3 changed files with 7 additions and 8 deletions

@ -1 +1 @@
Subproject commit 0389b4b5b996ac76334b4ea96c7fac1b2e9db050 Subproject commit 32c79e29db8b7086ceb3f44de69cd2398c51e16f

View File

@ -95,7 +95,7 @@ class PayController {
'payType' => 'WxJsapi_OffLine', 'payType' => 'WxJsapi_OffLine',
'Amount' => '0.1', 'Amount' => '0.1',
'OrderTime' => strftime('%Y%m%d%H%M%S', $nowtime), 'OrderTime' => strftime('%Y%m%d%H%M%S', $nowtime),
'AdviceUrl' => $advice_url, 'AdviceUrl' => htmlentities($advice_url),
'ScanpayMerchantCode' => '', 'ScanpayMerchantCode' => '',
'SignInfo' => '', 'SignInfo' => '',
'products' => '', 'products' => '',
@ -107,14 +107,13 @@ class PayController {
'BillNo=' . $params['BillNo'] . '&' . 'BillNo=' . $params['BillNo'] . '&' .
'Amount=' . $params['Amount'] . '&' . 'Amount=' . $params['Amount'] . '&' .
'OrderTime=' . $params['OrderTime'] . '&' . 'OrderTime=' . $params['OrderTime'] . '&' .
'AdviceUrl=' . $params['AdviceUrl'] 'AdviceUrl=' . $advice_url
); );
$requestDomain = ''; var_dump(phpcommon\objectToXml($params, '<ScanPayRequest/>'));
$requestDomain = base64_encode(phpcommon\objectToXml($params, '<ScanPayRequest/>'));
$response = ''; $response = '';
if (phpcommon\HttpClient::post(self::SCAN_PAY_API_URL, if (phpcommon\HttpClient::post(self::SCAN_PAY_API_URL,
array( 'requestDomain='. urlencode($requestDomain),
'requestDomain' => $requestDomain
),
$response) $response)
) { ) {

View File

@ -4,7 +4,7 @@ class PayNotifyController {
public function payNotify() public function payNotify()
{ {
error_log('payNotify:' . json_encode($_REQUEST));
} }
} }