修复DNS节点升级文件无法下载的Bug

This commit is contained in:
GoEdgeLab
2021-08-31 22:36:36 +08:00
parent aafe0c4e73
commit c3e011346f
6 changed files with 10 additions and 4 deletions

View File

@@ -215,7 +215,6 @@ func (this *DNSDomainDAO) FindDomainRouteName(tx *dbs.Tx, domainId int64, routeC
func (this *DNSDomainDAO) ExistAvailableDomains(tx *dbs.Tx) (bool, error) {
subQuery, err := SharedDNSProviderDAO.Query(tx).
Where("state=1"). // 这里要使用非变量
SQLCache(dbs.QuerySqlCacheDefault). // 子查询不能使用SQL_CACHE
ResultPk().
AsSQL()
if err != nil {