add checkParameter

This commit is contained in:
Markus Gärtner 2024-12-18 13:25:10 +01:00
parent 30fdd96b9f
commit 54ed984814

View File

@ -20,14 +20,17 @@ class connect extends BaseController
*/
public function init()
{
$this->checkParamter();
//dumpvar($this->processRequest());
//echo __METHOD__ . " " . __LINE__ . "<br>" . PHP_EOL;
// mod check, mayby as exception
if($this->checkParameter())
{
//dumpvar($this->processRequest());
//echo __METHOD__ . " " . __LINE__ . "<br>" . PHP_EOL;
#dumpvar($this->prepareFromTansport($this->prepareDataForTansport($this->processRequest())));
#echo __METHOD__ . " " . __LINE__ . "<br>" . PHP_EOL;
//die();
echo $this->prepareDataForTansport($this->processRequest());
#dumpvar($this->prepareFromTansport($this->prepareDataForTansport($this->processRequest())));
#echo __METHOD__ . " " . __LINE__ . "<br>" . PHP_EOL;
//die();
echo $this->prepareDataForTansport($this->processRequest());
}
}
/**
@ -213,7 +216,7 @@ MSQL;
return array('EXPORT_FOLDER' => $this->getConfig()->getConfigParam('sShopDir').$sExportFolder."/");
}
public function checkParamter()
public function checkParameter()
{
$aParameter = $this->getParameter();
// todo check accesstoken