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;