|
|
@@ -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))
|
|
|
{
|