Bläddra i källkod

Merge branch 'feature/v1.0.6_ws' of BaseService/powerCheckCenter into feature/v1.0.6

wangshan 1 år sedan
förälder
incheckning
ae1d028918
1 ändrade filer med 5 tillägg och 7 borttagningar
  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"]),
 					}
 				}
 			}