public class CommonUtil extends Object
Constructor and Description |
---|
CommonUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
generateOrderNumber()
生成订单的编号order_sn
|
static String |
getSha1(String str) |
static com.alibaba.fastjson.JSONObject |
httpsRequest(String requestUrl,
String requestMethod,
String outputStr)
发送https请求
|
public static com.alibaba.fastjson.JSONObject httpsRequest(String requestUrl, String requestMethod, String outputStr)
requestUrl
- 请求地址requestMethod
- 请求方式(GET、POST)outputStr
- 提交的数据public static String generateOrderNumber()
Copyright © 2021. All rights reserved.