修复EDataCapture类的构造函数类型语法错误问题
This commit is contained in:
@@ -56,7 +56,7 @@ class EDataCapture {
|
|||||||
foreach ($this -> post -> param -> data as &$row) {
|
foreach ($this -> post -> param -> data as &$row) {
|
||||||
if (($code_type[$row -> code]['type']) === 'float' and is_int($row -> value))
|
if (($code_type[$row -> code]['type']) === 'float' and is_int($row -> value))
|
||||||
$row -> value = (float) number_format((float) $row -> value, 1, '.', '');
|
$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)) {
|
if (!$check_func($row -> value)) {
|
||||||
$this -> check_res = 'MISMATCH_TYPE';
|
$this -> check_res = 'MISMATCH_TYPE';
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user