Skip to content

Commit e83c1a7

Browse files
hyriousaderan
authored andcommitted
fix: wrong return value of send message (#749)
1 parent 76cf885 commit e83c1a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/SMS.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ export class SMS {
116116

117117
if (resp.body.code !== "OK") {
118118
this.logger.error("send message failed");
119-
return true;
119+
return false;
120120
} else {
121121
this.logger.debug("send message success");
122-
return false;
122+
return true;
123123
}
124124
}
125125

0 commit comments

Comments
 (0)