这可能是由于订阅管理器的设置不正确导致的。已订阅的项目可能需要更新或重新安装。
以下是一些可能需要检查的设置:
以下是可能的示例代码生成 Webhook 响应:
//在此处生成 Webhook 响应
if ($isLive && $isRenewal) {
//检查是否有自动续订
if ($subscriptionStatus == 'active') {
//如果订阅处于活动状态,则发送通知
$response = array(
"subscription_id" => $subscriptionID,
"subscription_status" => $subscriptionStatus,
"expiration_time" => $expirationTime,
"notification_type" => "subscription_renewed"
);
} elseif ($subscriptionStatus == 'cancelled') {
//如果订阅被取消,则发送通知
$response = array(
"subscription_id" => $subscriptionID,
"subscription_status" => $subscriptionStatus,
"expiration_time" => $expirationTime,
"notification_type" => "subscription_cancelled"
);
}
}