From ca036ba584b5b65284b260a26adba5fd0687bc02 Mon Sep 17 00:00:00 2001 From: huyufei Date: Tue, 6 Aug 2024 10:39:21 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E4=BC=98=E5=8C=96=20review=5Fcreativ?= =?UTF-8?q?e=5Fid=EF=BC=8C=20=E6=B2=A1=E6=9C=89=E7=9A=84=E8=AF=9D=E4=B8=8D?= =?UTF-8?q?=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: huyufei --- Runtime/GuruCore/Runtime/Ads/Data/AdParams.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Runtime/GuruCore/Runtime/Ads/Data/AdParams.cs b/Runtime/GuruCore/Runtime/Ads/Data/AdParams.cs index 0a5a999..337d63b 100644 --- a/Runtime/GuruCore/Runtime/Ads/Data/AdParams.cs +++ b/Runtime/GuruCore/Runtime/Ads/Data/AdParams.cs @@ -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); }