mirror of
https://github.com/msojocs/wx-compiler.git
synced 2025-07-19 00:00:04 +08:00
fix: WXMLDom::RenderNonDefine内部逻辑错误
This commit is contained in:
parent
88e6989060
commit
72f660ea5a
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@ -57,10 +57,10 @@
|
||||
"variant": "cpp"
|
||||
},
|
||||
"cmake.debugConfig": {
|
||||
"cwd": "/mnt/d/Work/WeChatProjects/tdesign-miniprogram-starter-retail",
|
||||
"cwd": "/mnt/d/Work/WeChatProjects/issue/91/build",
|
||||
"args": [
|
||||
"\"--config-path\"",
|
||||
"\"/mnt/d/Work/WeChatProjects/case4-cmd.txt\""
|
||||
"\"/mnt/d/Work/WeChatProjects/issue/91/cmd/case1-cmd.txt\""
|
||||
]
|
||||
},
|
||||
"cmake.configureSettings": {
|
||||
|
@ -1,3 +1,9 @@
|
||||
## 🌈 v0.0.5 / 2023-09-23
|
||||
|
||||
🐞 Bug Fixes
|
||||
|
||||
- `WXMLDom::RenderNonDefine`: 内部逻辑错误,感谢 @Silentdoer [issue ref](https://github.com/msojocs/wechat-web-devtools-linux/issues/91)
|
||||
|
||||
## 🌈 v0.0.4 / 2023-08-31
|
||||
|
||||
🐞 Bug Fixes
|
||||
|
@ -1418,7 +1418,7 @@ namespace WXML {
|
||||
}
|
||||
a6 << "var " << a5 << "=_mz(z,'" << this->offset_0 << "',[";
|
||||
v259 = "";
|
||||
for (auto jj = v324.begin(); jj < v324.end(); jj++)
|
||||
for (auto jj = v324.begin(); jj != v324.end(); jj++)
|
||||
{
|
||||
std::string str1c = jj->first;
|
||||
std::string v342;
|
||||
@ -1428,7 +1428,8 @@ namespace WXML {
|
||||
if (!strncmp(str1c.data(), "generic:", 8u))
|
||||
{
|
||||
// jj->second.
|
||||
_v339.emplace_back(jj->first, jj->second);
|
||||
_v339.emplace_back(jj->first.substr(8), jj->second);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -1461,7 +1462,11 @@ namespace WXML {
|
||||
a6 << "',";
|
||||
if(i.second.offset_20)
|
||||
{
|
||||
a6 << i.second.offset_56;
|
||||
a6 << (i.second.offset_56 - v274);
|
||||
if (!v274)
|
||||
{
|
||||
v274 = i.second.offset_56;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -25868,7 +25868,7 @@ LABEL_158:
|
||||
std::string::_M_assign((int)v342, (int)jj);
|
||||
if ( !strncmp(Str1c, "generic:", 8u) )
|
||||
{
|
||||
Str = Str1c + 8; // std::string缓冲区
|
||||
Str = Str1c + 8; // 往后偏移8位
|
||||
// jj + 6 -> jj.offset_24 -> jj->second
|
||||
WXML::DOMLib::Token::Token((int)&v345, (WXML::DOMLib::Token *)(jj + 6), v244);
|
||||
std::string::basic_string((void **)v347, Str);
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
root_dir=$(cd `dirname $0`/.. && pwd -P)
|
||||
|
||||
cd /mnt/d/Work/WeChatProjects/tdesign-miniprogram-starter-retail
|
||||
cd /mnt/d/Work/WeChatProjects/issue/91/build
|
||||
|
||||
# list="cmd1 cmd2"
|
||||
# for cmd in $list;
|
||||
@ -11,9 +11,9 @@ cd /mnt/d/Work/WeChatProjects/tdesign-miniprogram-starter-retail
|
||||
# /root/github/wx-compiler/build/wcc "--config-path" "/mnt/d/Work/disassembly/wcc-exec/wcc/config/$cmd.txt" > /root/github/wx-compiler/test/wcc_linux.json
|
||||
# /mnt/d/Work/disassembly/wcc-exec/wcc/wcc.exe "--config-path" "d:/Work/disassembly/wcc-exec/wcc/config/$cmd.txt" > /root/github/wx-compiler/test/wcc_win.json
|
||||
# done;
|
||||
filename="WeChatProjects/case4-cmd.txt"
|
||||
filename="issue/91/cmd/case1-cmd.txt"
|
||||
echo "linux:"
|
||||
/root/github/wx-compiler/build/wcc "--config-path" "/mnt/d/Work/$filename" > /root/github/wx-compiler/test/wcc_linux.json
|
||||
/root/github/wx-compiler/build/wcc "--config-path" "/mnt/d/Work/WeChatProjects/$filename" > /root/github/wx-compiler/test/wcc_linux.json
|
||||
|
||||
echo "windows:"
|
||||
/mnt/d/Work/disassembly/wcc-exec/wcc/wcc.exe "--config-path" "d:/Work/$filename" > /root/github/wx-compiler/test/wcc_win.json
|
||||
/mnt/d/Work/disassembly/wcc-exec/wcc/wcc.exe "--config-path" "d:/Work/WeChatProjects/$filename" > /root/github/wx-compiler/test/wcc_win.json
|
||||
|
Loading…
x
Reference in New Issue
Block a user