删除日志

This commit is contained in:
邹宗楠
2022-10-24 11:22:38 +08:00
parent 5a47102894
commit 5d6a5a3226
139 changed files with 17 additions and 787 deletions

View File

@@ -3,7 +3,6 @@ package cms
import (
"encoding/json"
"git.rosy.net.cn/jx-callback/business/model/dao"
"git.rosy.net.cn/jx-callback/globals"
"strconv"
)
@@ -12,7 +11,6 @@ func UpdateStoreOperatorConfig() {
db := dao.GetDB()
store, err := dao.GetStoreList(db, nil, nil, []int{-1, 0, 1}, nil, nil, "")
if err != nil {
globals.SugarLogger.Debug("定时任务,获取所有门店信息错误")
return
}
userData := make(map[string][][]interface{}, 0)
@@ -23,7 +21,6 @@ func UpdateStoreOperatorConfig() {
for _, v := range store {
storeDetail, err := dao.GetStoreDetail(dao.GetDB(), v.ID, 0, "")
if err != nil {
globals.SugarLogger.Debug("定时任务,更新门店负责人,美团负责人.....错误", v.ID)
return
}
if storeDetail.MarketManPhone != "" { // 平台负责人jx
@@ -46,11 +43,9 @@ func UpdateStoreOperatorConfig() {
// 写入配置
byteData, err := json.Marshal(userData)
if err != nil {
globals.SugarLogger.Debug("Marshal err :", err)
return
}
if err := dao.UpdateOperatorConfig(string(byteData)); err != nil {
globals.SugarLogger.Debug("update new_config err :", err)
return
}
return