feat: add 新增二维码登录地址

This commit is contained in:
MiaoWoo committed 2023-05-25 10:09:48 +08:00
1 parent 83d779c072
commit bce8ec25af
4 files changed
+10 -1

No files matched your search

+1 -1
View File
@@ -94,7 +94,7 @@ string Dispatch(struct mg_connection *c, struct mg_http_message *hm) {
case WECHAT_IS_LOGIN: {
int success = -1;
success = g_context.account_mgr->CheckLogin();
json ret_data = {{"result", "OK"}, {"code", success}};
json ret_data = {{"result", "OK"}, {"code", success}, {"login_url", g_context.account_mgr->GetLoginUrl()}};
ret = ret_data.dump();
break;
}