修改上传用户头像,获取验证码

This commit is contained in:
chy
2025-06-20 18:12:09 +08:00
parent 414a3e5939
commit 33b040065f
5 changed files with 12 additions and 15 deletions

View File

@ -165,7 +165,7 @@ func (s *sUser) Info(ctx context.Context, in *model.UserInfoIn) (out *model.User
func (s *sUser) Code(ctx context.Context, in *model.GetPhoneCodeIn) (out *model.GetPhoneCodeOut, err error) {
// TODO 短信平台获取验证码
code := "9999"
code := "123456"
// 存入 redis
err = g.Redis().SetEX(ctx, fmt.Sprintf(consts.UserBindPhoneKey, in.Id), code, consts.UserCodeExpire)