You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
681 B

<?php
namespace fubei\pay;
use fubei\Base;
class Notify extends Base
{
/**
* 回调验证验证
* @param array $data 数据
* @date 2021-11-24
*/
public function notify($data = [])
{
$signData = $data['sign'];
unset($data['sign']);
$sign = $this->getSign($data);
if ($signData === $sign) {
$result = true;
} else {
$result = false;
}
// 记录日志
$uid = defined('UID') ? UID : '';
platformLog([
'data' => $data,
'sign' => $signData,
], $result, 'fubei_pay_notify_uid_' . $uid);
return $result;
}
}