Skip to content

Commit 3a34485

Browse files
committed
基础稳健编译通过
1 parent 67d2fe3 commit 3a34485

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/Senparc.Toutiao/Containers/BaseContainer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public static void Update(TBag bag, TimeSpan? expiry)
295295
{
296296
if (string.IsNullOrEmpty(bag.Key))
297297
{
298-
throw new WeixinException("ContainerBag 更新时,Key 不能为空!类型:" + bag.GetType());
298+
throw new ToutiaoException("ContainerBag 更新时,Key 不能为空!类型:" + bag.GetType());
299299
}
300300

301301
Update(bag.Key, bag, expiry);
@@ -492,7 +492,7 @@ public static async Task UpdateAsync(TBag bag, TimeSpan? expiry)
492492
{
493493
if (string.IsNullOrEmpty(bag.Key))
494494
{
495-
throw new WeixinException("ContainerBag 更新时,Key 不能为空!类型:" + bag.GetType());//TODO:使用异步异常抛出方式
495+
throw new ToutiaoException("ContainerBag 更新时,Key 不能为空!类型:" + bag.GetType());//TODO:使用异步异常抛出方式
496496
}
497497

498498
await UpdateAsync(bag.Key, bag, expiry).ConfigureAwait(false);

src/Senparc.Toutiao/Containers/BaseContainerBag.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,9 @@ and limitations under the License.
4242
4343
----------------------------------------------------------------*/
4444

45-
46-
47-
4845
using System;
4946
using System.Runtime.CompilerServices;
5047
using Senparc.CO2NET.MessageQueue;
51-
using Senparc.Toutiao.Annotations;
5248
using Senparc.Toutiao.Cache;
5349
using Senparc.Toutiao.Entities;
5450
using Senparc.Toutiao.Helpers;

0 commit comments

Comments
 (0)