소스 검색

feat:p540 代码优化

fuwencai 7 달 전
부모
커밋
93fd7074c9
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/entity/copywritingConfig.go

+ 3 - 0
src/entity/copywritingConfig.go

@@ -36,6 +36,9 @@ func GetConfig(codes []string) (configData map[string]interface{}) {
 			selectCode = append(selectCode, codes[i])
 		}
 	}
+	if len(args) == 0 {
+		return
+	}
 	q := fmt.Sprintf("select `code`,title,subtitle,button_confirm,button_cancel from %s where `code` in (%s)", TableSalesLeadsConfig, strings.Join(args, ","))
 	rs := Mysql.SelectBySql(q, selectCode...)
 	// 格式化