Skip to content

Commit

Permalink
fix: Network error
Browse files Browse the repository at this point in the history
  • Loading branch information
mystringEmpty committed Feb 23, 2024
1 parent cea2d82 commit 8c3c3f5
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 7 deletions.
37 changes: 35 additions & 2 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ jobs:
working-directory: ${{github.workspace}}/vcpkg
run: bootstrap-vcpkg.bat

- name: Package Clear
uses: actions/delete-package-versions@v4
with:
package-name: aws-c-s3_${{ matrix.triplet }}
package-type: nuget
min-versions-to-keep: 1
token: ${{ secrets.GITHUB_TOKEN }}


- name: 'Setup NuGet Credentials'
shell: 'bash'
# Replace <OWNER> with your organization name
Expand Down Expand Up @@ -135,7 +144,15 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
working-directory: ${{github.workspace}}/vcpkg
run: ./bootstrap-vcpkg.sh


- name: Package Clear
uses: actions/delete-package-versions@v4
with:
package-name: aws-c-s3_${{ matrix.triplet }}
package-type: nuget
min-versions-to-keep: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: 'Setup NuGet Credentials'
shell: 'bash'
# Replace <OWNER> with your organization name
Expand Down Expand Up @@ -241,6 +258,14 @@ jobs:
working-directory: ${{github.workspace}}/vcpkg
run: ./bootstrap-vcpkg.sh

- name: Package Clear
uses: actions/delete-package-versions@v4
with:
package-name: aws-c-s3_${{ matrix.triplet }}
package-type: nuget
min-versions-to-keep: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: 'Setup NuGet Credentials'
shell: 'bash'
# Replace <OWNER> with your organization name
Expand Down Expand Up @@ -329,7 +354,15 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
working-directory: ${{github.workspace}}/vcpkg
run: ./bootstrap-vcpkg.sh


- name: Package Clear
uses: actions/delete-package-versions@v4
with:
package-name: aws-c-s3_${{ matrix.triplet }}-static
package-type: nuget
min-versions-to-keep: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: 'Setup NuGet Credentials'
shell: 'bash'
# Replace <OWNER> with your organization name
Expand Down
2 changes: 1 addition & 1 deletion Dice/Dice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ bool eve_GroupAdd(Chat& grp) {
return true;
}
if (grp.is("协议无效"))return 0;
if (string selfIntro{ getMsg("strAddGroup", AnysTable{{"gid",fromGID}}) };
if (string selfIntro{ getMsg("strAddGroup", AnysTable{AttrVars{{"gid",fromGID}}}) };
!selfIntro.empty()) {
this_thread::sleep_for(2s);
AddMsgToQueue(selfIntro, { 0,fromGID, 0 });
Expand Down
3 changes: 1 addition & 2 deletions Dice/DiceMod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1110,8 +1110,7 @@ void DiceModManager::build() {
}
if (!resLog.empty()) {
resLog << "模块加载完毕√";
Enabled ? console.log(getMsg("strSelfName") + "\n" + resLog.show("\n"), 1, printSTNow())
: DD::debugLog(resLog.show("\n"));
console.log(getMsg("strSelfName") + "\n" + resLog.show("\n"), int(Enabled), printSTNow());
}
isIniting = false;
}
Expand Down
4 changes: 2 additions & 2 deletions Dice/DiceNetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ namespace Network
}
if (dwRetCode != 200)
{
des = getMsg("strRequestRetCodeErr", AnysTable{ {"error", std::to_string(dwRetCode)} });
des = getMsg("strRequestRetCodeErr", AnysTable{ AttrVars{{"error", std::to_string(dwRetCode)}}});
goto InternetClose;
}
DWORD preRcvCnt;
Expand Down Expand Up @@ -319,7 +319,7 @@ namespace Network
}
if (dwRetCode != 200)
{
des = getMsg("strRequestRetCodeErr", AnysTable{ {"error", std::to_string(dwRetCode)} });
des = getMsg("strRequestRetCodeErr", AnysTable{ AttrVars{{"error", std::to_string(dwRetCode)} } });
InternetCloseHandle(hRequest);
InternetCloseHandle(hConnect);
InternetCloseHandle(hInternet);
Expand Down

0 comments on commit 8c3c3f5

Please sign in to comment.