|
|
@@ -2,6 +2,7 @@ package user
|
|
|
|
|
|
import (
|
|
|
"context"
|
|
|
+ "time"
|
|
|
|
|
|
"git.i2edu.net/i2/i2-bill-api/internal/svc"
|
|
|
"git.i2edu.net/i2/i2-bill-api/internal/types"
|
|
|
@@ -29,9 +30,11 @@ func NewJzQrCodeLogic(ctx context.Context, svcCtx *svc.ServiceContext) JzQrCodeL
|
|
|
|
|
|
func (l *JzQrCodeLogic) JzQrCode() (*types.JzQrcodeResponse, error) {
|
|
|
uid, err := l.svcCtx.Wechat.GenUserQrId(qrcodeJzPrefix, l.UserId, map[string]interface{}{
|
|
|
- "userId": l.UserId,
|
|
|
- "type": "JzQrCode",
|
|
|
+ "userId": l.UserId,
|
|
|
+ "timestamp": time.Now().Unix(),
|
|
|
+ "type": "JzQrCode",
|
|
|
})
|
|
|
+ // l.svcCtx.Wechat.GetQrParams(qrcodeJzPrefix, uid, map[string]interface{}{})
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|