eganwu 3 سال پیش
والد
کامیت
030f65d0f7

+ 1 - 1
src/dsb/com/cnd3b/restcontroller/customer/wechatapplet/SQL/查询账号目录.sql

@@ -4,4 +4,4 @@ FROM tfolderauth t1
 WHERE frole IN $frole$
    OR fauthtype IN $fauthtype$
    OR tuserid = $tuserid$
-   OR tdepartmentid =( SELECT tdepartmentid FROM tdepartment WHERE wechat_depid = ( SELECT wechat_parendeptid FROM tdepartment WHERE wechat_depid = ( SELECT wechat_depid FROM tuser WHERE tuserid = $tuserid$)))
+   OR tdepartmentid in( SELECT tdepartmentid FROM tdepartment WHERE wechat_depid = ( SELECT wechat_parendeptid FROM tdepartment WHERE wechat_depid = ( SELECT wechat_depid FROM tuser WHERE tuserid = $tuserid$)))

+ 1 - 1
src/dsb/com/cnd3b/restcontroller/enterprise/datacenter/datacenter.java

@@ -541,7 +541,7 @@ public class datacenter extends Controller {
         Date expiration = new Date(expireEndTime);
         // PostObject请求最大可支持的文件大小为5 GB,即CONTENT_LENGTH_RANGE为5*1024*1024*1024。
         PolicyConditions policyConds = new PolicyConditions();
-        policyConds.addConditionItem(PolicyConditions.COND_CONTENT_LENGTH_RANGE, 0, 1048576000);
+        policyConds.addConditionItem(PolicyConditions.COND_CONTENT_LENGTH_RANGE, 0, Long.MAX_VALUE);
         policyConds.addConditionItem(MatchMode.StartWith, PolicyConditions.COND_KEY, dir);
         String postPolicy = ossClient.generatePostPolicy(expiration, policyConds);
         byte[] binaryData = postPolicy.getBytes(StandardCharsets.UTF_8);