update: 优化 review_creative_id, 没有的话不上报

Signed-off-by: huyufei <yufei.hu@castbox.fm>
胡宇飞 2024-08-06 10:39:21 +08:00
parent c489786038
commit ca036ba584
1 changed files with 3 additions and 5 deletions

View File

@ -69,11 +69,9 @@ namespace Guru
{
creativeId = creativeId.Substring(0, MAX_VALUE_LENGTH);
}
if (string.IsNullOrEmpty(reviewCreativeId))
{
reviewCreativeId = VALUE_NOT_SET;
}
else if(reviewCreativeId.Length > MAX_VALUE_LENGTH)
if (!string.IsNullOrEmpty(reviewCreativeId)
&& reviewCreativeId.Length > MAX_VALUE_LENGTH)
{
reviewCreativeId = reviewCreativeId.Substring(0, MAX_VALUE_LENGTH);
}