Shop/src/com/tenpay/util/TenpayUtil.java

(开头部分) 8KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.tenpay.util;

import java.io.PrintStream;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.text.SimpleDateFormat;
import java.util.*;

public class TenpayUtil
{

    public TenpayUtil()
    {
    }

    public static int toInt(Object obj)
    {
        int a = 0;
        try
        {
            if(obj != null)
            {
                a = Integer.parseInt(obj.toString());
            }
        }
        catch(Exception exception) { }
        return a;
    }

    public static long toLong(Object obj)
    {
        long a = 0L;
        try
        {
            if(obj != null)
            {
                a = Long.parseLong(obj.toString());
            }
        }
        catch(Exception exception) { }
        return a;
    }

    public static String toString(Object obj)
    {
        if(obj == null)
        {
            return "";
        } else
        {
            return obj.toString();
        }
    }

    public static long yuan2Fen(String money)
    {
        return yuan2Fen(Double.valueOf(money).doubleValue());
    }

    public static long yuan2Fen(double money)
后面还有 222 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。