order query
This commit is contained in:
parent
b20fa8ad35
commit
21743caae9
|
|
@ -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, "/")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue