PaYphp 为个人企业提供全方位的支付解决方案
| 参数 | 参数类型 | 参数描述 |
|---|---|---|
| data | string/number/table | 要编码的数据,如果是表会先转为JSON |
| 返回值类型 | 描述 |
|---|---|
| string | base64编码后的字符串 |
| 参数 | 参数类型 | 参数描述 |
|---|---|---|
| count | number | 要生成的随机字符串长度 |
| 返回值类型 | 描述 |
|---|---|
| string | 指定长度的随机字符串 |
| 参数 | 参数类型 | 参数描述 |
|---|---|---|
| count | number | 要生成的随机字符串长度 |
| 返回值类型 | 描述 |
|---|---|
| string | 指定长度的随机字符串 |
| 参数 | 参数类型 | 参数描述 |
|---|---|---|
| count | number | 要生成的随机字符串长度 |
| 返回值类型 | 描述 |
|---|---|
| string | 指定长度的随机字符串 |
| 参数 | 参数类型 | 参数描述 |
|---|---|---|
| str | string | 需要URL编码的字符串 |
| 返回值类型 | 描述 |
|---|---|
| string | URL编码后的字符串 |
| 参数 | 参数类型 | 参数描述 |
|---|---|---|
| str | string | URL编码的字符串 |
| 返回值类型 | 描述 |
|---|---|
| string | 解码后的原始字符串 |
| 参数 | 参数类型 | 参数描述 |
|---|---|---|
| str | string | 需要编码的路径字符串 |
| 返回值类型 | 描述 |
|---|---|
| string | 编码后的路径字符串 |
| 参数 | 参数类型 | 参数描述 |
|---|---|---|
| str | string | 编码的路径字符串 |
| 返回值类型 | 描述 |
|---|---|
| string | 解码后的原始路径字符串 |
| 参数 | 参数类型 | 参数描述 |
|---|---|---|
| str | string | 需要计算MD5的字符串 |
| 返回值类型 | 描述 |
|---|---|
| string | 32位MD5哈希值 |
| 参数 | 参数类型 | 参数描述 |
|---|---|---|
| timestamp | int | 时间戳,不传递为当前时间 |
| 返回值类型 | 描述 |
|---|---|
| string | 格式化的时间字符串,格式为"yyyyMMddHHmmss" 如:20091227091010 |
| 参数 | 参数类型 | 参数描述 |
|---|---|---|
| timestamp | int | 时间戳,不传递为当前时间 |
| 返回值类型 | 描述 |
|---|---|
| string | 格式化的日期字符串,格式为"yyyyMMdd" 如: 20091227 |
| 参数 | 参数类型 | 参数描述 |
|---|---|---|
| format | string | 时间格式字符串,此处请注意,这里是按照golang的format格式,如:2006-01-02 15:04:05 |
| timestamp | int | 时间戳 |
| 返回值类型 | 描述 |
|---|---|
| string | 格式化后的时间字符串 |
| 返回值类型 | 描述 |
|---|---|
| string | 格式化的日期时间字符串,格式为"2006-01-02 15:04:05" |
| 返回值类型 | 描述 |
|---|---|
| number | 当前的Unix时间戳(秒) |
| 返回值类型 | 描述 |
|---|---|
| table | 当前日期时间对象 |
| 参数 | 参数类型 | 参数描述 |
|---|---|---|
| datetime | string | 日期时间字符串,格式为"yyyy-MM-dd HH:mm:ss" |
| 返回值类型 | 描述 |
|---|---|
| number | Unix时间戳(秒) |
| 参数 | 参数类型 | 参数描述 |
|---|---|---|
| amount | string | 金额字符串,如"12.34" |
| 返回值类型 | 描述 |
|---|---|
| number | 金额的分值(整数),如1234 |
| 参数 | 参数类型 | 参数描述 |
|---|---|---|
| amount | number | 金额的分值(整数),如1234 |
| 返回值类型 | 描述 |
|---|---|
| string | 金额字符串,如"12.34" |
| 参数 | 参数类型 | 参数描述 |
|---|---|---|
| xml | string | XML格式的字符串 |
| 返回值类型 | 描述 |
|---|---|
| string | 转换后的JSON字符串 |
| 参数 | 参数类型 |
|---|