huangjiajun 3 months ago
parent
commit
27763ca325
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      app/db/db_store.go
  2. +1
    -0
      app/svc/svc_store.go

+ 1
- 1
app/db/db_store.go View 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 View 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",


Loading…
Cancel
Save