Merge branch 'zentaopms_289' of https://gitlab.zcorp.cc/easycorp/zentaopms into zentaopms_289

This commit is contained in:
tianshujie
2023-02-24 14:50:42 +08:00
5 changed files with 87 additions and 0 deletions
+31
View File
@@ -33,6 +33,22 @@ class devTest
return $result;
}
/**
* Test set field method.
*
* @param array $type
* @access public
* @return array
*/
public function setFieldTest($type)
{
$this->objectModel->dbh->setAttribute(PDO::ATTR_CASE, PDO::CASE_LOWER);
$sql = "DESC zt_product";
$rawFields = $this->objectModel->dbh->query($sql)->fetchAll();
return $this->objectModel->setField((array)$rawFields[1], (object)$rawFields[1], $type, 1);
}
/**
* Test get APIs of a module.
*
@@ -59,6 +75,21 @@ class devTest
return $result;
}
/**
* Test get original lang method.
*
* @param string $type
* @param string $module
* @param string $method
* @access public
* @return int|array
*/
public function getOriginalLangTest($type = 'common', $module = '', $method = '')
{
$result = $this->objectModel->getOriginalLang($type, $module, $method);
return empty($result) ? 0 : $result;
}
/**
* Get nav lang.
*