瀏覽代碼

Merge branch 'main' of ssh://192.168.0.8:29418/xianjing into hy_tw-en

gdl_123 3 月之前
父節點
當前提交
012affdebd

+ 10 - 1
Build/BuildDependenceResource/Plugins/SDKBridge/Android_en_hx/YouYiSDKAndroid.cs

@@ -74,7 +74,16 @@ namespace quicksdk
             {
                 Dictionary<string, SDKMgr.ProductInfo> cfgs = SDKMgr.Instance.ProductInfos;
 
-                string pice = amount.ToString("F2");
+                 int itemp = Mathf.FloorToInt(amount);
+                string pice = "";
+                if ((itemp + 0.005f) > amount)
+                {
+                    pice = itemp.ToString();
+                }
+                else
+                {
+                    pice = amount.ToString("F2");
+                }
 
                 if (cfgs.ContainsKey(pice))
                 {

+ 10 - 1
Build/BuildDependenceResource/Plugins/SDKBridge/Quick_andriod_hy_en/YouYiSDKAndroid.cs

@@ -74,7 +74,16 @@ public class YouYiSDKAndroid : SDKBase
             {
                 Dictionary<string, SDKMgr.ProductInfo> cfgs = SDKMgr.Instance.ProductInfos;
 
-                string pice = amount.ToString("F2");
+                 int itemp = Mathf.FloorToInt(amount);
+                string pice = "";
+                if ((itemp + 0.005f) > amount)
+                {
+                    pice = itemp.ToString();
+                }
+                else
+                {
+                    pice = amount.ToString("F2");
+                }
 
                 if (cfgs.ContainsKey(pice))
                 {