shh
parent
c2ee6ce1bd
commit
50bb5d80b7
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue