我在 easypost 中配置了一个 webhook url,它会在我的货件中发生新事件时发送更新。在交货当天,我收到的状态为“未知”。基本上,只收到 2 个状态,“未知”和“已交付”(在交付日期)。我是easypost的新手。有人可以帮忙吗?
//webhook function to pick the status from 'Tracker' object
public function update() {
$data = json_decode(trim(file_get_contents('php://input')), true);
if(isset($data['result']) && $data['result']['object']=='Tracker')
{
$result = $data['result'];