$appId, 'status' => 1, 'type' => $type], 1, 1); if(0 == $count) { return '';} $adPlacementInfo = $list->first(); return $adPlacementInfo->ad_placement_id ?? ''; } public static function syncAdPlacement($appId) { $response = DouYinApi::syncAdPlacement($appId); if(!empty($response)) { return AdPlacement::saveData($appId, $response['ad_placement_list']); } return false; } }