feat/task1-c-wallet
devil_gong 2018-10-22 18:00:13 +08:00
parent c2ee6ce1bd
commit 50bb5d80b7
1 changed files with 7 additions and 2 deletions

View File

@ -40,6 +40,7 @@ class AlipayLife
// 当前生活号是否存在
if(empty($this->life_data))
{
file_put_contents('./ssssss.txt', 111);
die('life error');
}
}
@ -96,11 +97,13 @@ class AlipayLife
{
if($this->OutRsaVerify($this->ArrayToUrlString($this->params), $this->params['sign']))
{
file_put_contents('./ssssss.txt', 222);
$response_xml = '<success>true</success><biz_content>'.$this->life_data['rsa_public'].'</biz_content>';
} else {
file_put_contents('./ssssss.txt', 333);
$response_xml = '<success>false</success><error_code>VERIFY_FAILED</error_code><biz_content>'.$this->life_data['rsa_public'].'</biz_content>';
}
die('<?xml version="1.0" encoding="GBK"?>
$return_xml = '<?xml version="1.0" encoding="GBK"?>
<alipay>
<response>
<biz_content>'.$this->life_data['rsa_public'].'</biz_content>
@ -108,7 +111,9 @@ class AlipayLife
</response>
<sign>'.$this->MyRsaSign($response_xml).'</sign>
<sign_type>RSA2</sign_type>
</alipay>');
</alipay>';
file_put_contents('./ssssss.txt', $return_xml);
die($return_xml);
}