Skip to content

Commit 75273ab

Browse files
fix: Resolve issue where website names are not displayed in logs for stream-type websites (#11379)
1 parent 02b278e commit 75273ab

File tree

5 files changed

+864
-111
lines changed

5 files changed

+864
-111
lines changed

agent/app/api/v2/website.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (b *BaseApi) GetWebsiteOptions(c *gin.Context) {
7373
// @Security ApiKeyAuth
7474
// @Security Timestamp
7575
// @Router /websites [post]
76-
// @x-panel-log {"bodyKeys":["primaryDomain"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建网站 [primaryDomain]","formatEN":"Create website [primaryDomain]"}
76+
// @x-panel-log {"bodyKeys":["alias"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建网站 [alias]","formatEN":"Create website [alias]"}
7777
func (b *BaseApi) CreateWebsite(c *gin.Context) {
7878
var req request.WebsiteCreate
7979
if err := helper.CheckBindAndValidate(&req, c); err != nil {

agent/app/service/website.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ func (w WebsiteService) CreateWebsite(create request.WebsiteCreate) (err error)
307307
website.Protocol = constant.ProtocolHTTP
308308
}
309309

310-
createTask, err := task.NewTaskWithOps(primaryDomain, task.TaskCreate, task.TaskScopeWebsite, create.TaskID, 0)
310+
createTask, err := task.NewTaskWithOps(website.PrimaryDomain, task.TaskCreate, task.TaskScopeWebsite, create.TaskID, 0)
311311
if err != nil {
312312
return err
313313
}

0 commit comments

Comments
 (0)