From daf395d0fbed0d13e391d18c182e4209069d0571 Mon Sep 17 00:00:00 2001 From: Mr_Xiao_Zhang Date: Tue, 14 Jun 2022 15:11:32 +0800 Subject: [PATCH] fix bug --- src/apis/smsApi.ts | 2 +- src/controllers/dingTalk.controller.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apis/smsApi.ts b/src/apis/smsApi.ts index 5126fb1..f280b98 100644 --- a/src/apis/smsApi.ts +++ b/src/apis/smsApi.ts @@ -1,4 +1,4 @@ -import Core from '@alicloud/pop-core'; +import * as Core from '@alicloud/pop-core'; import config from '@config/config'; const SMSApi = { diff --git a/src/controllers/dingTalk.controller.ts b/src/controllers/dingTalk.controller.ts index 28a2977..dfe4fa2 100644 --- a/src/controllers/dingTalk.controller.ts +++ b/src/controllers/dingTalk.controller.ts @@ -225,7 +225,7 @@ export class DingTalkController { cursor: 0, size: 1, }); - if (result.result.data_list.length > 0) { + if (result?.result?.data_list.length > 0) { return true; } return false;