This commit is contained in:
xiaojunnuo
2024-12-01 03:09:29 +08:00
parent 2bc3456400
commit 15740a6d8a
3 changed files with 8 additions and 5 deletions

View File

@@ -56,7 +56,7 @@ export class CodeService {
/**
*/
async sendSmsCode(phoneCode = '86', mobile: string, randomStr: string) {
if (mobile != null) {
if (!mobile) {
throw new Error('手机号不能为空');
}
if (!randomStr) {