huangjiajun 2 个月前
父节点
当前提交
8d6f83713c
共有 2 个文件被更改,包括 49 次插入1 次删除
  1. +5
    -1
      app/svc/svc_store.go
  2. +44
    -0
      tmp/zhios_74856566.log

+ 5
- 1
app/svc/svc_store.go 查看文件

@@ -32,7 +32,7 @@ func BankStore(c *gin.Context) {
v["km"] = GetCommissionPrec(c, v["km"], "2", "1")
v["km"] += "km"
}
if utils.StrToFloat64(km) <= 0 {
if utils.StrToFloat64(km) <= 0 || utils.StrToFloat64(v["lat"]) == 0 || utils.StrToFloat64(v["lng"]) == 0 {
v["km"] = "-"
}
tmp := map[string]interface{}{
@@ -72,12 +72,16 @@ func Store(c *gin.Context) {
store := db.GetStore(MasterDb(c), arg)
storeList := make([]map[string]interface{}, 0)
for _, v := range store {
km := v["km"]
if utils.StrToFloat64(v["km"]) < 1 {
v["km"] = utils.IntToStr(int(utils.StrToFloat64(v["km"])*1000)) + "m"
} else {
v["km"] = GetCommissionPrec(c, v["km"], "2", "1")
v["km"] += "km"
}
if utils.StrToFloat64(km) <= 0 || utils.StrToFloat64(v["lat"]) == 0 || utils.StrToFloat64(v["lng"]) == 0 {
v["km"] = "-"
}
label := make([]string, 0)
tmp := map[string]interface{}{
"lat": v["lat"],


+ 44
- 0
tmp/zhios_74856566.log 查看文件

@@ -0,0 +1,44 @@
[xorm] [info] 2024/09/12 17:19:44.257736 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [is_over_time] - 62.2054ms
[xorm] [info] 2024/09/12 17:19:44.355668 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [close_station] - 61.626ms
[xorm] [info] 2024/09/12 17:19:44.443626 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [close_app_version] - 61.0618ms
[xorm] [info] 2024/09/12 17:19:44.532870 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [domain_setting] - 61.6773ms
[xorm] [info] 2024/09/12 17:19:44.735693 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [domain_setting] - 60.8336ms
[xorm] [info] 2024/09/12 17:19:44.882275 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [domain_setting] - 60.2086ms
[xorm] [info] 2024/09/12 17:19:45.027242 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [h5_api_secret_key] - 60.3863ms
[xorm] [info] 2024/09/12 17:19:45.200190 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [app_api_secret_key] - 61.256ms
[xorm] [info] 2024/09/12 17:19:45.371783 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [applet_api_secret_key] - 61.819ms
[xorm] [info] 2024/09/12 17:19:45.571141 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [integral_prec] - 63.4267ms
[xorm] [info] 2024/09/12 17:19:46.059379 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [fan_order_commission_prec] - 80.6147ms
[xorm] [info] 2024/09/12 17:19:46.553430 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [area_order_commission_prec] - 111.6843ms
[xorm] [info] 2024/09/12 17:19:46.855416 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [commission_prec] - 82.3807ms
[xorm] [info] 2024/09/12 17:19:47.104868 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [price_prec] - 61.6127ms
[xorm] [info] 2024/09/12 17:19:47.378062 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [ds_check] - 89.9852ms
[xorm] [info] 2024/09/12 17:19:47.924232 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [is_show_point] - 126.8014ms
[xorm] [info] 2024/09/12 17:19:48.032540 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [app_user_default_avatar] - 78.2344ms
[xorm] [info] 2024/09/12 17:19:48.292197 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [order_virtual_coin_type] - 61.928ms
[xorm] [info] 2024/09/12 17:19:48.531958 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [order_virtual_coin_name] - 65.5395ms
[xorm] [info] 2024/09/12 17:19:48.885249 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [h5_applet_must_sign] - 102.2504ms
[xorm] [info] 2024/09/12 17:19:49.188571 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [android_must_sign] - 113.4906ms
[xorm] [info] 2024/09/12 17:19:49.347661 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [ios_must_sign] - 120.2503ms
[xorm] [info] 2024/09/12 17:19:49.506836 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [sms_type] - 90.0718ms
[xorm] [info] 2024/09/12 17:19:49.667640 [SQL] SELECT `uid`, `username`, `password`, `passcode`, `email`, `phone`, `nickname`, `level`, `is_store`, `invite_total`, `level_arrive_at`, `level_expire_at`, `create_at`, `update_at`, `last_login_at`, `delete_at`, `state`, `last_login_ip`, `register_ip`, `is_fake`, `is_marketer`, `can_change_lv`, `is_pop`, `is_not_add_moments`, `zone`, `sale_phone`, `platform`, `import_fin_total`, `fin_total` FROM `user` WHERE (uid = ?) LIMIT 1 [6] - 62.8345ms
[xorm] [info] 2024/09/12 17:19:49.753816 [SQL] SELECT `uid`, `arkid_uid`, `parent_uid`, `arkid_token`, `avatar_url`, `custom_invite_code`, `invite_code`, `gender`, `birthday`, `acc_wx_id`, `acc_wx_openid`, `acc_taobao_nickname`, `acc_taobao_auth_time`, `acc_taobao_share_id`, `acc_taobao_self_id`, `acc_jd_self_id`, `acc_jd_share_id`, `acc_jd_free_id`, `acc_jd_cloud_id`, `acc_suning_self_id`, `acc_suning_share_id`, `acc_suning_free_id`, `acc_pdd_self_id`, `acc_pdd_cloud_id`, `acc_pdd_share_id`, `acc_pdd_free_id`, `acc_pdd_bind`, `acc_vip_self_id`, `acc_vip_share_id`, `acc_vip_free_id`, `acc_kaola_self_id`, `acc_kaola_share_id`, `acc_kaola_free_id`, `acc_duomai_share_id`, `acc_alipay`, `acc_alipay_real_name`, `cert_time`, `cert_name`, `cert_num`, `cert_state`, `fin_commission`, `fin_valid`, `fin_invalid`, `fin_self_order_count`, `fin_self_order_count_done`, `fin_self_rebate`, `fin_total`, `lat`, `lng`, `memo`, `qq`, `is_new`, `is_verify`, `is_ordered`, `from_way`, `hid_order`, `hid_contact`, `new_msg_notice`, `wx_account`, `wx_qrcode`, `third_party_taobao_oid`, `third_party_taobao_sid`, `third_party_taobao_acctoken`, `third_party_taobao_authcode`, `third_party_apple_token`, `third_party_qq_access_token`, `third_party_qq_expires_in`, `third_party_qq_openid`, `third_party_qq_unionid`, `third_party_wechat_expires_in`, `third_party_wechat_openid`, `third_party_wechat_unionid`, `third_party_wechat_mini_openid`, `third_party_wechat_h5_openid`, `free_remain_time`, `free_cumulative_time`, `second_free_remain_time`, `second_free_cumulative_time`, `third_free_remain_time`, `third_free_cumulative_time`, `is_delete`, `update_at`, `is_set`, `is_old`, `run_verify_time`, `task_id`, `task_type` FROM `user_profile` WHERE (uid = ?) LIMIT 1 [6] - 85.4656ms
[xorm] [info] 2024/09/12 17:19:49.816772 [SQL] SELECT `id`, `benefit_ids`, `level_name`, `level_weight`, `level_update_condition`, `auto_audit`, `auto_update`, `level_date`, `is_use`, `choosable_num`, `before_hide`, `label`, `memo`, `css_set`, `create_at` FROM `user_level` WHERE (id = ?) LIMIT 1 [0] - 62.6158ms
[xorm] [info] 2024/09/12 17:20:38.763739 [SQL] select *,sqrt( ( (( 116.498608 - lng)*PI()*12656*cos((( 39.931900 +lat)/2)*PI()/180)/180) * (( 116.498608 - lng)*PI()*12656*cos (((39.931900+lat)/2)*PI()/180)/180) ) + ( ((39.931900-lat)*PI()*12656/180) * ((39.931900-lat)*PI()*12656/180) ) ) AS km from community_team_store where state=1 and store_type=0 order by fan desc,km asc,id asc limit 0,15 [] - 190.5698ms
[xorm] [info] 2024/09/12 17:20:38.827531 [SQL] SELECT count(*) FROM `community_team_store_like` WHERE (uid=? and store_id=?) [6 3] - 63.4719ms
[xorm] [info] 2024/09/12 17:20:38.890676 [SQL] SELECT count(*) FROM `community_team_store_like` WHERE (uid=? and store_id=?) [6 5] - 62.3516ms
[xorm] [info] 2024/09/12 17:24:32.092478 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [is_over_time] - 215.8424ms
[xorm] [info] 2024/09/12 17:24:32.182252 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [close_station] - 62.7012ms
[xorm] [info] 2024/09/12 17:24:32.271866 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [close_app_version] - 61.9816ms
[xorm] [info] 2024/09/12 17:24:32.363026 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [domain_setting] - 62.2274ms
[xorm] [info] 2024/09/12 17:24:32.563886 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [domain_setting] - 62.2913ms
[xorm] [info] 2024/09/12 17:24:32.708187 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [domain_setting] - 61.5739ms
[xorm] [info] 2024/09/12 17:24:33.104653 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [is_show_point] - 61.0933ms
[xorm] [info] 2024/09/12 17:24:33.306004 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [android_must_sign] - 62.2009ms
[xorm] [info] 2024/09/12 17:24:33.396132 [SQL] SELECT `key`, `val`, `memo` FROM `sys_cfg` WHERE (`key`=?) LIMIT 1 [ios_must_sign] - 62.0494ms
[xorm] [info] 2024/09/12 17:24:33.491637 [SQL] SELECT `uid`, `username`, `password`, `passcode`, `email`, `phone`, `nickname`, `level`, `is_store`, `invite_total`, `level_arrive_at`, `level_expire_at`, `create_at`, `update_at`, `last_login_at`, `delete_at`, `state`, `last_login_ip`, `register_ip`, `is_fake`, `is_marketer`, `can_change_lv`, `is_pop`, `is_not_add_moments`, `zone`, `sale_phone`, `platform`, `import_fin_total`, `fin_total` FROM `user` WHERE (uid = ?) LIMIT 1 [6] - 64.2239ms
[xorm] [info] 2024/09/12 17:24:33.559318 [SQL] SELECT `uid`, `arkid_uid`, `parent_uid`, `arkid_token`, `avatar_url`, `custom_invite_code`, `invite_code`, `gender`, `birthday`, `acc_wx_id`, `acc_wx_openid`, `acc_taobao_nickname`, `acc_taobao_auth_time`, `acc_taobao_share_id`, `acc_taobao_self_id`, `acc_jd_self_id`, `acc_jd_share_id`, `acc_jd_free_id`, `acc_jd_cloud_id`, `acc_suning_self_id`, `acc_suning_share_id`, `acc_suning_free_id`, `acc_pdd_self_id`, `acc_pdd_cloud_id`, `acc_pdd_share_id`, `acc_pdd_free_id`, `acc_pdd_bind`, `acc_vip_self_id`, `acc_vip_share_id`, `acc_vip_free_id`, `acc_kaola_self_id`, `acc_kaola_share_id`, `acc_kaola_free_id`, `acc_duomai_share_id`, `acc_alipay`, `acc_alipay_real_name`, `cert_time`, `cert_name`, `cert_num`, `cert_state`, `fin_commission`, `fin_valid`, `fin_invalid`, `fin_self_order_count`, `fin_self_order_count_done`, `fin_self_rebate`, `fin_total`, `lat`, `lng`, `memo`, `qq`, `is_new`, `is_verify`, `is_ordered`, `from_way`, `hid_order`, `hid_contact`, `new_msg_notice`, `wx_account`, `wx_qrcode`, `third_party_taobao_oid`, `third_party_taobao_sid`, `third_party_taobao_acctoken`, `third_party_taobao_authcode`, `third_party_apple_token`, `third_party_qq_access_token`, `third_party_qq_expires_in`, `third_party_qq_openid`, `third_party_qq_unionid`, `third_party_wechat_expires_in`, `third_party_wechat_openid`, `third_party_wechat_unionid`, `third_party_wechat_mini_openid`, `third_party_wechat_h5_openid`, `free_remain_time`, `free_cumulative_time`, `second_free_remain_time`, `second_free_cumulative_time`, `third_free_remain_time`, `third_free_cumulative_time`, `is_delete`, `update_at`, `is_set`, `is_old`, `run_verify_time`, `task_id`, `task_type` FROM `user_profile` WHERE (uid = ?) LIMIT 1 [6] - 66.8905ms
[xorm] [info] 2024/09/12 17:24:33.623044 [SQL] SELECT `id`, `benefit_ids`, `level_name`, `level_weight`, `level_update_condition`, `auto_audit`, `auto_update`, `level_date`, `is_use`, `choosable_num`, `before_hide`, `label`, `memo`, `css_set`, `create_at` FROM `user_level` WHERE (id = ?) LIMIT 1 [0] - 63.2108ms
[xorm] [info] 2024/09/12 17:24:33.655379 [SQL] select *,sqrt( ( (( 116.498608 - lng)*PI()*12656*cos((( 39.931900 +lat)/2)*PI()/180)/180) * (( 116.498608 - lng)*PI()*12656*cos (((39.931900+lat)/2)*PI()/180)/180) ) + ( ((39.931900-lat)*PI()*12656/180) * ((39.931900-lat)*PI()*12656/180) ) ) AS km from community_team_store where state=1 and store_type=0 order by fan desc,km asc,id asc limit 0,15 [] - 31.9952ms
[xorm] [info] 2024/09/12 17:24:33.717952 [SQL] SELECT count(*) FROM `community_team_store_like` WHERE (uid=? and store_id=?) [6 3] - 62.4122ms
[xorm] [info] 2024/09/12 17:24:33.780975 [SQL] SELECT count(*) FROM `community_team_store_like` WHERE (uid=? and store_id=?) [6 5] - 62.5205ms

正在加载...
取消
保存