order query

This commit is contained in:
ziming 2025-04-29 15:54:50 +08:00
parent b20fa8ad35
commit 21743caae9
1 changed files with 7 additions and 7 deletions

View File

@ -150,13 +150,13 @@ func (this *CmbService) queryOrder(r *http.Request) (*bo.OrderBo, error) {
func (this *CmbService) queryByOrderNo(r *http.Request) (string, error) { func (this *CmbService) queryByOrderNo(r *http.Request) (string, error) {
//ip := r.Header.Get("X-Forwarded-For") ip := r.Header.Get("X-Forwarded-For")
//if len(ip) == 0 { if len(ip) == 0 {
// ip = r.RemoteAddr ip = r.RemoteAddr
//} }
//if ip != "117.175.169.61" && ip != "127.0.0.1" { if ip != "117.175.169.61" && ip != "127.0.0.1" {
// return "", fmt.Errorf("ip check fail,IP:%s", ip) return "", fmt.Errorf("ip check fail,IP:%s", ip)
//} }
path := r.URL.Path path := r.URL.Path
parts := strings.Split(path, "/") parts := strings.Split(path, "/")