Ver Fonte

wip:文库权限

wangshan há 1 ano atrás
pai
commit
d8cd843a25
1 ficheiros alterados com 5 adições e 7 exclusões
  1. 5 7
      service/power.go

+ 5 - 7
service/power.go

@@ -312,13 +312,11 @@ func (this *PowerService) Power(userid string, baseUserId, accountId, entId, pos
 						}
 					}
 					//文库
-					if common.Int64All((*eudata)["i_doc_status"]) > 0 {
-						docs = &entity.Docs{
-							DocStatus:    common.Int64All((*data)["i_doc_status"]),
-							StartDate:    common.Int64All((*data)["l_doc_starttime"]),
-							EndDate:      common.Int64All((*data)["l_doc_endtime"]),
-							FreeDownload: common.Int64All((*data)["i_doc_free_download"]),
-						}
+					docs = &entity.Docs{
+						DocStatus:    common.Int64All((*data)["i_doc_status"]),
+						StartDate:    common.Int64All((*data)["l_doc_starttime"]),
+						EndDate:      common.Int64All((*data)["l_doc_endtime"]),
+						FreeDownload: common.Int64All((*data)["i_doc_free_download"]),
 					}
 				}
 			}