com.typhoon.unitysdk 1.1.5 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,7 +1,19 @@
1
1
  # 更新日志
2
+ ## [1.1.7] - 2025-08-05
3
+
4
+ ### 修复
5
+ * 修复paycallback.cs创建bug
6
+
7
+
8
+ ## [1.1.6] - 2025-08-05
9
+
10
+ ### 修复
11
+ * 应用时OnPayCallBack创建报错问题
12
+
13
+
2
14
  ## [1.1.5] - 2025-08-05
3
15
 
4
- ### 新增
16
+ ### 新增
5
17
  * 新增微游渠道
6
18
 
7
19
 
@@ -6,8 +6,8 @@ namespace TyphoonUnitySDK
6
6
  {
7
7
  public static class CheckCallBackScript
8
8
  {
9
- private const string TEMPLATE_PAY_CALL_BACK_FILE =
10
- "Assets/com.typhoon.unitysdk/Editor/CheckPayCallBack/OnPayCallBack.template";
9
+ private static string TEMPLATE_PAY_CALL_BACK_FILE =
10
+ $"{Paths.GetRoot()}/Editor/CheckPayCallBack/OnPayCallBack.template";
11
11
 
12
12
  [InitializeOnLoadMethod]
13
13
  public static void OnInitialize()
@@ -15,6 +15,7 @@ namespace TyphoonUnitySDK
15
15
  var path = "Assets/Typhoon_Gen/TyphoonSDK/OnPayCallback.cs";
16
16
  if (!File.Exists(path))
17
17
  {
18
+ UniEditor.CreateDirIfNotExist(Path.GetDirectoryName(path));
18
19
  File.Copy(TEMPLATE_PAY_CALL_BACK_FILE, path, true);
19
20
  Debug.Log($"生成 {path}");
20
21
  AssetDatabase.Refresh();
@@ -0,0 +1,17 @@
1
+ using System.IO;
2
+
3
+ namespace TyphoonUnitySDK
4
+ {
5
+ public class Paths
6
+ {
7
+ public static string GetRoot()
8
+ {
9
+ if (!Directory.Exists("Assets/com.typhoon.unitysdk"))
10
+ {
11
+ return "Packages/com.typhoon.unitysdk";
12
+ }
13
+
14
+ return "Assets/com.typhoon.unitysdk";
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 1a820b8208359ab4c9a639d836843989
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.1.5","description":"","unity":"2018.1","type":"tool","hideInEditor":false,"author":{"name":"Jan Zhang","email":"","url":""},"changelogUrl":"","documentationUrl":"","keywords":["typhoon"],"license":"","licensesUrl":"","customDependencies":[{"PackageName":"com.unity.nuget.newtonsoft-json","Value":"2.0.0"}],"version_log":"## [1.1.5] - 2025-08-05\r\n\r\n### 新增\n* 新增微游渠道\r\n\r\n","major_flag":false,"write_time_stamp":1754323242000,"others":{"items":[]},"dependencies":{"com.unity.nuget.newtonsoft-json":"2.0.0"}}
1
+ {"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.1.7","description":"","unity":"2018.1","type":"tool","hideInEditor":false,"author":{"name":"Jan Zhang","email":"","url":""},"changelogUrl":"","documentationUrl":"","keywords":["typhoon"],"license":"","licensesUrl":"","customDependencies":[{"PackageName":"com.unity.nuget.newtonsoft-json","Value":"2.0.0"}],"version_log":"## [1.1.7] - 2025-08-05\r\n\r\n### 修复\n* 修复paycallback.cs创建bug\r\n\r\n","major_flag":false,"write_time_stamp":1754367921000,"others":{"items":[]},"dependencies":{"com.unity.nuget.newtonsoft-json":"2.0.0"}}