outtradeno
This commit is contained in:
parent
7802af4b55
commit
7d316b13ec
|
@ -25,7 +25,7 @@ func NewPay() *Pay {
|
||||||
|
|
||||||
func (p *Pay) Pay(corp *model.Corp, user *model.StaffUser, title, payType string, amount int64, outTradeNo string) error {
|
func (p *Pay) Pay(corp *model.Corp, user *model.StaffUser, title, payType string, amount int64, outTradeNo string) error {
|
||||||
if outTradeNo == "" {
|
if outTradeNo == "" {
|
||||||
outTradeNo = fmt.Sprintf("%d_%s_%d", corp.Id, time.Now().Format("200601020304"), user.Id)
|
outTradeNo = fmt.Sprintf("%d_%s_%d", corp.Id, time.Now().UnixNano(), user.Id)
|
||||||
}
|
}
|
||||||
|
|
||||||
plog, err := dao.NewStaffPayLogDao().GetByOutTradeNo(outTradeNo)
|
plog, err := dao.NewStaffPayLogDao().GetByOutTradeNo(outTradeNo)
|
||||||
|
|
Loading…
Reference in New Issue