Skip to content

Commit b3f48c6

Browse files
committed
API_V2 fix
1 parent ab4d05a commit b3f48c6

File tree

9 files changed

+16
-19
lines changed

9 files changed

+16
-19
lines changed

Demo/API_V2/Assets/API/APISO.asset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ MonoBehaviour:
1919
- {fileID: 11400000, guid: 9977a581037b84833a32b508e00eb1a2, type: 2}
2020
- {fileID: 11400000, guid: 56f316e0e10ba419bbf19bd7a68bfc4c, type: 2}
2121
- {fileID: 11400000, guid: 6f0972f5fdc56c543b23c9873d760bf5, type: 2}
22-
- {fileID: 11400000, guid: 7ef06699cee7846b7823e4cc421418eb, type: 2}
2322
- {fileID: 11400000, guid: a461b8cd70d9e4e23ad1cc953bec31e9, type: 2}
23+
- {fileID: 11400000, guid: 7ef06699cee7846b7823e4cc421418eb, type: 2}
2424
- {fileID: 11400000, guid: 55de20d536f8c4689bbd80553d87fe46, type: 2}
2525
- {fileID: 11400000, guid: f2c56d751bb7c4c398db7c1db352517d, type: 2}
2626
- {fileID: 11400000, guid: b4a6196f623dd4435a4f3bd70af92d06, type: 2}

Demo/API_V2/Assets/API/Ad/AdWithAudio/AdWithAudio.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
using System;
22
using System.Collections;
3-
using System.Collections.Generic;
43
using UnityEngine;
5-
using UnityEngine.Audio;
64
using UnityEngine.Networking;
7-
using UnityEngine.Networking;
8-
using UnityEngine.UI;
95
using WeChatWASM;
106

117
public class AdWithAudio : Details

Demo/API_V2/Assets/API/Facility/FacilitySO.asset

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ MonoBehaviour:
1515
categoryName: "\u8BBE\u5907"
1616
categorySprite: {fileID: 21300000, guid: fcbb6947b033746dabecaec0f84b0434, type: 3}
1717
entryList:
18-
- {fileID: 11400000, guid: a24af43ae51914d26b0bf637c283dab2, type: 2}
19-
- {fileID: 11400000, guid: 4eba2c9f2f2064e4081be74302ca4c33, type: 2}
2018
- {fileID: 11400000, guid: bbbc9b983d6d34ad3bac2921509f612f, type: 2}
2119
- {fileID: 11400000, guid: c17ae0ce755f04419b700825b20fd386, type: 2}
20+
- {fileID: 11400000, guid: a24af43ae51914d26b0bf637c283dab2, type: 2}
21+
- {fileID: 11400000, guid: 4eba2c9f2f2064e4081be74302ca4c33, type: 2}
2222
- {fileID: 11400000, guid: ac09abff5d8bc48bbabd08bde820b58b, type: 2}
2323
- {fileID: 11400000, guid: 3bf339b994c544db3860ddf0a0dc8e20, type: 2}
2424
- {fileID: 11400000, guid: e92d94924be504167a342e42e1162f21, type: 2}

Demo/API_V2/Assets/API/Facility/Screen/Screen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class Screen : Details
1010
private bool _isListening1 = false;
1111
private System.Random random = new System.Random();
1212

13-
private readonly Action<GeneralCallbackResult> _onUserCaptureScreen = (res) =>
13+
private readonly Action<OnUserCaptureScreenListenerResult> _onUserCaptureScreen = (res) =>
1414
{
1515
WX.ShowToast(new ShowToastOption { title = "截屏触发" });
1616
var result = "_onUserCaptureScreen\n" + JsonMapper.ToJson(res);

Demo/API_V2/Assets/API/FileSystem/FileSystemSO.asset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ MonoBehaviour:
2424
- {fileID: 11400000, guid: 65ab1b01a722b4542a14fcf9decca3de, type: 2}
2525
- {fileID: 11400000, guid: 19b80cb144f0c4ea28a4ddca7a2c2f09, type: 2}
2626
- {fileID: 11400000, guid: 0aa5d76237c844275add1612c47bddaa, type: 2}
27-
- {fileID: 11400000, guid: 65a826f5f949544d8990e673231bb80f, type: 2}
2827
- {fileID: 11400000, guid: 73c05fc1ffae94ec1b69a00ee261d529, type: 2}
28+
- {fileID: 11400000, guid: 65a826f5f949544d8990e673231bb80f, type: 2}
2929
- {fileID: 11400000, guid: 3a901e80b59ad4aafbe373ee6a8df2d8, type: 2}
3030
- {fileID: 11400000, guid: e7ea0be62dc6543b0a8dc629489c5e7e, type: 2}

Demo/API_V2/Assets/API/Network/UnityWebRequest/WebRequest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ IEnumerator Get()
4242

4343
yield return webRequest.SendWebRequest();
4444

45-
if (webRequest.isHttpError || webRequest.isNetworkError)
45+
if (webRequest.result is UnityWebRequest.Result.ProtocolError or UnityWebRequest.Result.ConnectionError)
4646
Debug.Log(webRequest.error);
4747
else
4848
{
@@ -62,7 +62,7 @@ IEnumerator Post()
6262

6363
yield return webRequest.SendWebRequest();
6464

65-
if (webRequest.isHttpError || webRequest.isNetworkError)
65+
if (webRequest.result is UnityWebRequest.Result.ProtocolError or UnityWebRequest.Result.ConnectionError)
6666
Debug.Log(webRequest.error);
6767
else
6868
{

Demo/API_V2/Assets/API/OpenInterface/GameClub/GameClub.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private void getGameClubData()
8282
WX.GetGameClubData(option);
8383
}
8484

85-
private bool _isGameClubShow = false;
85+
// private bool _isGameClubShow = false;
8686

8787
// 切换游戏圈按钮显示/隐藏
8888
private void GameClubButtonSwitch()

Demo/API_V2/Assets/API/OpenInterface/SystemButton/SystemButton.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected override void TestAPI(string[] args)
8989
);
9090
}
9191

92-
private bool _isFeedbackShow = true;
92+
// private bool _isFeedbackShow = true;
9393

9494
// 切换意见反馈按钮显示/隐藏
9595
private void FeedbackButtonSwitch()

Demo/API_V2/Assets/WX-WASM-SDK-V2/Editor/MiniGameConfig.asset

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ MonoBehaviour:
1313
m_Name: MiniGameConfig
1414
m_EditorClassIdentifier:
1515
ProjectConf:
16-
projectName: NetworkDemo
17-
Appid: wxb7d4485dbc1233ca
16+
projectName:
17+
Appid:
1818
CDN: http://127.0.0.1:8080
1919
assetLoadType: 0
2020
compressDataPackage: 0
2121
VideoUrl:
22-
DST: C:/Users/xiaoyuejin/Desktop/Network
22+
DST:
2323
StreamCDN:
2424
bundleHashLength: 32
2525
bundlePathIdentifier: StreamingAssets;
@@ -46,7 +46,7 @@ MonoBehaviour:
4646
UseMiniGameChat: 0
4747
PreloadWXFont: 0
4848
CompileOptions:
49-
DevelopBuild: 0
49+
DevelopBuild: 1
5050
AutoProfile: 0
5151
ScriptOnly: 0
5252
Il2CppOptimizeSize: 1
@@ -57,12 +57,13 @@ MonoBehaviour:
5757
ProfilingMemory: 0
5858
CleanBuild: 0
5959
CustomNodePath:
60-
showMonitorSuggestModal: 1
60+
autoAdaptScreen: 0
61+
showMonitorSuggestModal: 0
6162
enableProfileStats: 0
6263
enableRenderAnalysis: 0
6364
iOSAutoGCInterval: 10000
6465
enableIOSPerformancePlus: 0
65-
brotliMT: 1
66+
brotliMT: 0
6667
CompressTexture:
6768
halfSize: 0
6869
useDXT5: 0

0 commit comments

Comments
 (0)