Merge branch 'lich0821:master' into master

This commit is contained in:
chandler 2025-04-03 21:34:21 +08:00 committed by GitHub
commit 5d0157bd68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#pragma once
#pragma once
#include <map>
#include <string>
@ -55,6 +55,7 @@ typedef struct {
string name;
string mobile;
string home;
string alias;
} UserInfo_t;
typedef struct {

View File

@ -1,4 +1,4 @@
syntax = "proto3";
syntax = "proto3";
package wcf;
option java_package = "com.iamteer";
@ -178,6 +178,7 @@ message UserInfo
string name = 2; //
string mobile = 3; //
string home = 4; // /
string alias = 5; // wxid
}
message DecPath

View File

@ -82,6 +82,7 @@ UserInfo_t get_user_info()
ui.home = get_home_path().generic_string();
ui.name = get_string_value(service_addr, OsAcc::NAME);
ui.mobile = get_string_value(service_addr, OsAcc::MOBILE);
ui.alias = get_string_value(service_addr, OsAcc::ALIAS);
return ui;
}
@ -104,6 +105,7 @@ bool rpc_get_user_info(uint8_t *out, size_t *len)
rsp.msg.ui.name = (char *)ui.name.c_str();
rsp.msg.ui.mobile = (char *)ui.mobile.c_str();
rsp.msg.ui.home = (char *)ui.home.c_str();
rsp.msg.ui.alias = (char *)ui.alias.c_str();
});
}

View File

@ -1,4 +1,4 @@
#pragma once
#pragma once
#include <cstdint>
@ -13,6 +13,7 @@ namespace Account
constexpr uint64_t NAME = 0x1E8; // 昵称
constexpr uint64_t MOBILE = 0x128; // 手机号
constexpr uint64_t LOGIN = 0x7F8; // 登录状态
constexpr uint64_t ALIAS = 0x108; // 修改后的WXID
}
namespace Chatroom