huangjiajun 2 mesi fa
parent
commit
27763ca325
2 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +1
    -1
      app/db/db_store.go
  2. +1
    -0
      app/svc/svc_store.go

+ 1
- 1
app/db/db_store.go Vedi File

@@ -13,7 +13,7 @@ func GetStore(eg *xorm.Engine, arg map[string]string) []map[string]string {
sel := ` *,sqrt( ( (( %f - lng)*PI()*12656*cos((( %f +lat)/2)*PI()/180)/180) * (( %f - lng)*PI()*12656*cos (((%f+lat)/2)*PI()/180)/180) ) + ( ((%f-lat)*PI()*12656/180) * ((%f-lat)*PI()*12656/180) ) ) AS km`
sel = fmt.Sprintf(sel, lng, lat, lng, lat, lat, lat)
sql := `select %s from community_team_store where %s %s`
where := "1=1"
where := "state=1"
if arg["parent_uid"] != "" {
where += " and store_type=2 and parent_uid=" + arg["parent_uid"]
} else if arg["uid"] != "" {


+ 1
- 0
app/svc/svc_store.go Vedi File

@@ -41,6 +41,7 @@ func BankStore(c *gin.Context) {
"id": v["id"],
"km": v["km"],
"time_str": v["timer"],
"uid": v["uid"],
"phone": v["phone"],
"logo": v["logo"],
"is_like": "0",


Caricamento…
Annulla
Salva