新增返回用户扫码登录的场景 id

This commit is contained in:
2025-06-24 09:06:54 +08:00
parent 3166edc3dd
commit 5777219c07
3 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,12 @@
package wx
import (
"context"
"fmt"
"server/api/wx/v1"
"time"
)
func (c *ControllerV1) GetWechatSceneId(ctx context.Context, req *v1.GetWechatSceneIdReq) (res *v1.GetWechatSceneIdRes, err error) {
return &v1.GetWechatSceneIdRes{SceneId: fmt.Sprintf("%s_%d", req.NetbarAccount, time.Now().Unix())}, nil
}