Skip to content

com.egzosn.pay.common.util.Util#conversionCentAmount计算溢出 #105

Description

@dongfangding

入参明明是BigDecimal,出参强制转换为int会造成溢出。
随便一个乘100超过int最大值的问题,都会导致订单金额出现重大问题。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions