mirror of
https://gitee.com/Zhaoxin59/my-chat_-client.git
synced 2026-02-14 09:01:50 +08:00
has been completed.
This commit is contained in:
@ -368,8 +368,12 @@ void SelfInfoWidget::clickGetVerifyCodeBtn()
|
||||
|
||||
//给服务器发送请求
|
||||
DataCenter* dataCenter = DataCenter::getInstance();
|
||||
connect(dataCenter, &DataCenter::getVerifyCodeDone, this, [=]() {
|
||||
connect(dataCenter, &DataCenter::getVerifyCodeDone, this, [=](bool ok) {
|
||||
//不需要做其他的处理,只需要提示一下,验证码已经发送出去了
|
||||
if (!ok) {
|
||||
return;
|
||||
}
|
||||
LOG() << "ok: " << ok;
|
||||
Toast::showMessage("验证码已发送,请注意查收");
|
||||
});
|
||||
dataCenter->getVerifyCodeAsync(email);
|
||||
|
||||
Reference in New Issue
Block a user