修复EDataCapture类的构造函数类型语法错误问题

This commit is contained in:
wu
2022-09-08 18:22:11 +08:00
parent a2b83e2408
commit fc631f7576

View File

@@ -56,7 +56,7 @@ class EDataCapture {
foreach ($this -> post -> param -> data as &$row) {
if (($code_type[$row -> code]['type']) === 'float' and is_int($row -> value))
$row -> value = (float) number_format((float) $row -> value, 1, '.', '');
$check_func = 'is_' . $code_type[$row -> code['type']];
$check_func = 'is_' . $code_type[$row -> code]['type'];
if (!$check_func($row -> value)) {
$this -> check_res = 'MISMATCH_TYPE';
return;