فهرست منبع

style: JzQrCode

2637309949 4 سال پیش
والد
کامیت
fadff5a159
1فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 5 2
      internal/logic/user/jzqrcodelogic.go

+ 5 - 2
internal/logic/user/jzqrcodelogic.go

@@ -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
 	}