orderattr

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChannelOrderStatusDesc

func GetChannelOrderStatusDesc(key string) (text string)

*

  • 返回订单状态描述
  • 2020/10/22

func GetChannelOrderStatusKey

func GetChannelOrderStatusKey(status string) (key string)

func GetChannelOrderStatusText

func GetChannelOrderStatusText(key string) (text string)

func GetStatusDesc

func GetStatusDesc(key string) (text string)

*

  • 返回订单状态描述
  • 2020/10/22

func GetStatusKey

func GetStatusKey(status string) (key string)

func GetStatusText

func GetStatusText(key string) (text string)

func NewOrderSn

func NewOrderSn(user_id string) string

*

  • 订单号规则
  • id后4位(随机4位)+当前时间(10位)
  • 2020/08/10

func Sign

func Sign(order_sn, status, time, appid string) string

*

  • 通知订单状态时签名
  • 签名方式:md5(order_sn-status--time---appid)
  • 2020/08/21 *gz

func VerifyNumber

func VerifyNumber() string

*

  • 核销码规则
  • 随机2位+当前时间(6位)
  • 2020/08/10

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL