@@ -92,17 +92,22 @@ static function createServerPostProcessing($postMultipart, $p, $context) {
9292 }
9393 $ netIps [$ network_id ] = Arr::get ($ network , "ip " , "auto " );
9494 $ netSubnets [$ network_id ] = "" ;
95- $ netPrefixes [$ network_id ] = "" ;
95+ $ netPrefixes [$ network_id ] = 0 ;
9696 }
9797 ksort ($ netIps );
9898 ksort ($ netModes );
9999 ksort ($ netNames );
100100 ksort ($ netSubnets );
101101 ksort ($ netPrefixes );
102- $ trafficPackage = $ values ["monthlypackage " ];
103102 switch (strtolower (trim ($ values ["billingcycle " ]))) {
104- case "monthly " : $ billingMode = 0 ; break ;
105- case "hourly " : $ billingMode = 1 ; break ;
103+ case "monthly " :
104+ $ billingMode = 0 ;
105+ $ trafficPackage = $ values ["monthlyPackage " ];
106+ break ;
107+ case "hourly " :
108+ $ billingMode = 1 ;
109+ $ trafficPackage = "t5000 " ;
110+ break ;
106111 default : throw new ProxyServerInvalidArgumentException ("billingcycle " );
107112 }
108113 switch (strtolower ($ values ["managed " ])) {
@@ -125,6 +130,7 @@ static function createServerPostProcessing($postMultipart, $p, $context) {
125130 "nServers " => 1 ,
126131 "names " => [$ values ["name " ]],
127132 "cpuStr " => $ values ["cpu " ],
133+ "cpuType " => $ values ["cpu " ][strlen ($ values ["cpu " ])-1 ],
128134 "ramMB " => $ values ["ram " ],
129135 "diskSizesGB " => $ diskSizeGB ,
130136 "password " => $ values ["password " ],
@@ -146,7 +152,8 @@ static function createServerPostProcessing($postMultipart, $p, $context) {
146152 "sourceServerId " => Arr::get ($ values , "sourceServerId " , '' ),
147153 "userId " => 0 ,
148154 "ownerId " => 0 ,
149- "srcUI " => true
155+ "srcUI " => true ,
156+ "selectedKey " => null
150157 ];
151158 }
152159
0 commit comments