瀏覽代碼

bugfix disklimit unit

andre 4 年之前
父節點
當前提交
c05fc9d9f7
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      zimbraSingle.php

+ 2 - 2
zimbraSingle.php

@@ -418,7 +418,7 @@ function zimbraSingle_CreateAccount($params) {
                 array(
                 array(
                     'username' => $params['username'],
                     'username' => $params['username'],
                     'password' => $params['customfields']['password'],
                     'password' => $params['customfields']['password'],
-                    'disklimit' => $baseQuota + $addonQuota + $newAddQuota,
+                    'disklimit' => ($baseQuota + $addonQuota + $newAddQuota) * 1024,
                 )
                 )
             );
             );
     } catch (\Exception $e) {
     } catch (\Exception $e) {
@@ -637,7 +637,7 @@ function zimbraSingle_ChangePackage($params) {
             ->where('id', '=', $params['serviceid'])
             ->where('id', '=', $params['serviceid'])
             ->update(
             ->update(
                 array(
                 array(
-                    'disklimit' => $baseQuota + $addonQuota + $newAddQuota,
+                    'disklimit' => ($baseQuota + $addonQuota + $newAddQuota) * 1024,
                 )
                 )
             );
             );
     } catch (\Exception $e) {
     } catch (\Exception $e) {