Code cleanup.
This commit is contained in:
parent
982255503a
commit
5389324558
1 changed files with 10 additions and 5 deletions
|
@ -221,8 +221,10 @@ $infos = array(
|
||||||
'p'=>array('sessid', 'gunid'), 'r'=>'trtok'),
|
'p'=>array('sessid', 'gunid'), 'r'=>'trtok'),
|
||||||
*/
|
*/
|
||||||
|
|
||||||
"openPut" => array('m'=>"locstor.openPut", 'p'=>array()),
|
"openPut" => array('m'=>"locstor.openPut", 'p'=>array()),
|
||||||
"closePut" => array('m'=>"locstor.closePut", 'p'=>array()),
|
"closePut" => array('m'=>"locstor.closePut", 'p'=>array()),
|
||||||
|
"ping" => array('m'=>"locstor.ping", 'p'=>array('par')),
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@ -274,9 +276,12 @@ switch ($method) {
|
||||||
} elseif(count($pinfo) == 0) {
|
} elseif(count($pinfo) == 0) {
|
||||||
$parr = (object)array();
|
$parr = (object)array();
|
||||||
} else {
|
} else {
|
||||||
$parr = array(); $i=0;
|
$parr = array();
|
||||||
foreach($pinfo as $it){
|
$i = 0;
|
||||||
if(isset($pars[$i])) $parr[$it] = $pars[$i];
|
foreach($pinfo as $it) {
|
||||||
|
if (isset($pars[$i])) {
|
||||||
|
$parr[$it] = $pars[$i];
|
||||||
|
}
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue