shh
parent
40536fb117
commit
879ca17e7a
|
|
@ -96,17 +96,19 @@ class AlipayLife
|
||||||
{
|
{
|
||||||
if($this->OutRsaVerify($this->ArrayToUrlString($this->params), $this->params['sign']))
|
if($this->OutRsaVerify($this->ArrayToUrlString($this->params), $this->params['sign']))
|
||||||
{
|
{
|
||||||
die('<?xml version="1.0" encoding="GBK"?>
|
$response_xml = '<success>true</success><biz_content>'.$this->life_data['rsa_public'].'</biz_content>';
|
||||||
<alipay>
|
} else {
|
||||||
<response>
|
$response_xml = '<success>false</success><error_code>VERIFY_FAILED</error_code><biz_content>'.$this->life_data['rsa_public'].'</biz_content>';
|
||||||
<biz_content>'.$this->life_data['rsa_public'].'</biz_content>
|
|
||||||
<success>true</success>
|
|
||||||
</response>
|
|
||||||
<sign>'.$this->MyRsaSign('<biz_content>'.$this->life_data['rsa_public'].'</biz_content><success>true</success>').'</sign>
|
|
||||||
<sign_type>RSA2</sign_type>
|
|
||||||
</alipay>');
|
|
||||||
}
|
}
|
||||||
die('check error');
|
die('<?xml version="1.0" encoding="GBK"?>
|
||||||
|
<alipay>
|
||||||
|
<response>
|
||||||
|
<biz_content>'.$this->life_data['rsa_public'].'</biz_content>
|
||||||
|
<success>true</success>
|
||||||
|
</response>
|
||||||
|
<sign>'.$this->MyRsaSign($response_xml).'</sign>
|
||||||
|
<sign_type>RSA2</sign_type>
|
||||||
|
</alipay>');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue