调整微信扫码登录相关接口,拆分门店奖励:奖励类型、奖励详情

This commit is contained in:
2025-06-03 11:06:00 +08:00
parent ea87bc829e
commit fdc9cc3463
37 changed files with 698 additions and 189 deletions

View File

@ -27,7 +27,7 @@ import (
// - 若 Token 格式非法或解析失败:终止请求并返回错误。
// - 若 Token 合法:将用户信息写入上下文,继续执行下一个中间件或处理函数。
func Auth(r *ghttp.Request) {
token := r.Header.Get("Authorization")
token := r.GetHeader("Authorization")
ctx := r.GetCtx()
if token == "" {
glog.Infof(ctx, "未登录用户访问: %s %s", r.URL.Path, r.Method)