修复EDataCapture类的构造函数类型语法错误问题
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user