* Process cases where the argument type of the calling function is int.
This commit is contained in:
@@ -29,3 +29,7 @@ $config->transfer->actionModule = array('task');
|
||||
|
||||
$config->transfer->lazyLoading = false;
|
||||
$config->transfer->showImportCount = 20;
|
||||
|
||||
$config->transfer->convertInt['branch']['getPairs']['productID'] = true;
|
||||
$config->transfer->convertInt['tree']['getOptionMenu']['rootID'] = true;
|
||||
$config->transfer->convertInt['productplan']['getPairs']['productID'] = true;
|
||||
|
||||
@@ -40,7 +40,8 @@ class transferTao extends transferModel
|
||||
if(!is_string($value)) continue;
|
||||
if(strpos($value, '$') === false) continue;
|
||||
$params[$param] = isset($getParams[ltrim($value, '$')]) ? $getParams[ltrim($value, '$')] : '';
|
||||
if(is_numeric($params[$param]) && strpos($params[$param], ".") ===false) $params[$param] = (int)$params[$param];
|
||||
if(isset($this->config->transfer->convertInt[$callModule][$method][ltrim($value, '$')])) $params[$param] = (int)$params[$param];
|
||||
if(isset($this->config->transfer->convertInt[$callModule][$method][$param])) $params[$param] = (int)$params[$param];
|
||||
}
|
||||
|
||||
/* 调用模块的方法。 */
|
||||
|
||||
Reference in New Issue
Block a user