feat: 根据502647092提供的偏移,新增登录二维码

This commit is contained in:
hugy
2023-05-25 22:10:03 +08:00
parent 581aacb8ce
commit aaada266df
6 changed files with 49 additions and 12 deletions
+6
View File
@@ -572,6 +572,12 @@ string Dispatch(struct mg_connection *c, struct mg_http_message *hm) {
ret = ret_data.dump();
break;
}
case WECHAT_GET_QRCODE: {
string url = g_context.account_mgr->GetQRCodeUrl();
json ret_data = {{"code", 1}, {"result", "OK"},{"qrCodeUrl",url}};
ret = ret_data.dump();
break;
}
default:
break;
}