|
@@ -197,10 +197,13 @@ func (this *ProductController) AddProduct() {
|
|
|
switch req.Type {
|
|
|
case "report":
|
|
|
product.RiskLevel, product.Title, err = services.GetRiskLevel("report", req.SourceId)
|
|
|
+ product.IsPermanent = true
|
|
|
case "audio":
|
|
|
product.RiskLevel, product.Title, err = services.GetRiskLevel("audio", req.SourceId)
|
|
|
+ product.IsPermanent = true
|
|
|
case "video":
|
|
|
product.RiskLevel, product.Title, err = services.GetRiskLevel("video", req.SourceId)
|
|
|
+ product.IsPermanent = true
|
|
|
case "package":
|
|
|
product.RiskLevel, permissionName, err = services.GetRiskLevel("package", req.SourceId)
|
|
|
default:
|
|
@@ -500,6 +503,11 @@ func (this *ProductController) ProductList() {
|
|
|
RiskLevel: product.RiskLevel,
|
|
|
Price: fmt.Sprintf("¥%s", product.Price),
|
|
|
SaleStatus: CNSaleStatusMap[product.SaleStatus],
|
|
|
+ CoverSrc: product.CoverSrc,
|
|
|
+ ValidDays: product.ValidDays,
|
|
|
+ Creator: product.Creator,
|
|
|
+ IsPermanent: product.IsPermanent,
|
|
|
+ Description: product.Description,
|
|
|
}
|
|
|
if !product.UpdatedTime.IsZero() {
|
|
|
view.UpdatedTime = product.UpdatedTime.Format(time.DateTime)
|