diff --git a/service/Application/Library/AlipayLife.class.php b/service/Application/Library/AlipayLife.class.php index 9aed6e3d5..121eb4a16 100644 --- a/service/Application/Library/AlipayLife.class.php +++ b/service/Application/Library/AlipayLife.class.php @@ -210,6 +210,7 @@ class AlipayLife $status = false; if($this->OutRsaVerify($this->ArrayToUrlString($this->params), $this->params['sign'])) { + $userinfo = empty($this->xml_data['UserInfo']) ? '' : json_decode($this->xml_data['UserInfo'], true); $data = [ 'appid' => $this->xml_data['AppId'], 'alipay_open_id' => $this->xml_data['FromAlipayUserId'],