|
@@ -118,7 +118,7 @@ class UserService extends CrudService {
|
|
await this.redis.set(`${this.bindPhoneKey}${id}`, value, 'EX', 300);
|
|
await this.redis.set(`${this.bindPhoneKey}${id}`, value, 'EX', 300);
|
|
// 发短信
|
|
// 发短信
|
|
const data = { config: this.smsServiceConfig, template: 'bind', phone, params: { code } };
|
|
const data = { config: this.smsServiceConfig, template: 'bind', phone, params: { code } };
|
|
- const url = `${this.smsServiceUrl}/sendEmail`;
|
|
|
|
|
|
+ const url = `${this.smsServiceUrl}/sendMessage`;
|
|
await this.httpUtil.cpost(url, data);
|
|
await this.httpUtil.cpost(url, data);
|
|
}
|
|
}
|
|
}
|
|
}
|