|
@@ -8,6 +8,7 @@ import (
|
|
|
reportService "eta/eta_mini_ht_api/domian/report"
|
|
|
"eta/eta_mini_ht_api/service/media"
|
|
|
"eta/eta_mini_ht_api/service/user"
|
|
|
+ "sync"
|
|
|
)
|
|
|
|
|
|
type MediaController struct {
|
|
@@ -189,7 +190,10 @@ func (m *MediaController) GetMedia(mediaType string, mediaId int, productId int)
|
|
|
detailType := m.Data["detailType"].(string)
|
|
|
var subscribeStatus string
|
|
|
if productId > 0 {
|
|
|
+ var wg sync.WaitGroup
|
|
|
+ wg.Add(1)
|
|
|
go func() {
|
|
|
+ defer wg.Done()
|
|
|
subscribeStatus = user.GetUserScribeStatus(productId, userInfo.Id)
|
|
|
}()
|
|
|
} else {
|