Skip to content

Commit

Permalink
add info log
Browse files Browse the repository at this point in the history
  • Loading branch information
sunjiayu committed Oct 22, 2024
1 parent 46d98db commit 0e54fa8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/wx_payment/wx_payment.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ func (server WxPaymentServiceImpl) Jsapi(ctx context.Context, req *wx_payment.Js
grpclog.Errorf("whitelist query openid: %v fail err:%v", dbQueryData.OpenID, err)
return &resp, nil
}
grpclog.Infof("WhitelistMySqlQuery resp: %+v", dbQueryRes)
for _, item := range dbQueryRes {
grpclog.Infof("WhitelistMySqlQuery db res:%v,%v,%v,%v,%v,%v,", *item.OpenID, *item.Name, *item.AddedTime, *item.ExpirationTime, *item.AddedBy, *item.Status)
}
if len(dbQueryRes) > 0 && dbQueryRes[0].Status != nil && *dbQueryRes[0].Status == 1 {
now_unix := time.Now().Unix()
is_free_user := false
Expand Down

0 comments on commit 0e54fa8

Please sign in to comment.