rdluck %!s(int64=4) %!d(string=hai) anos
pai
achega
5844877726
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      controllers/video.go

+ 2 - 1
controllers/video.go

@@ -81,11 +81,12 @@ func (this *VideoController) List() {
 	if len(companyProduct) == 0 {
 		status = 1
 	} else {
+		status = 1
 		for _,v:=range companyProduct{
 			if v.Status == utils.COMPANY_STATUS_TRY_OUT ||
 				v.Status == utils.COMPANY_STATUS_FORMAL ||
 				v.Status == utils.COMPANY_STATUS_FOREVER {
-				status = 1
+				status = 0
 				break
 			}
 		}