* Remove convert int for lastInsertID function.

This commit is contained in:
wangyidong
2023-05-17 11:25:24 +08:00
parent 006e4b190b
commit cfd6f5cc40
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -509,7 +509,7 @@ class productModel extends model
->checkFlow()
->exec();
if(dao::isError()) return false;
$productID = (int)$this->dao->lastInsertID();
$productID = $this->dao->lastInsertID();
/* Fix order and line fields for product. */
$fixData = new stdclass();
+2 -2
View File
@@ -564,7 +564,7 @@ class productTao extends productModel
$this->dao->insert(TABLE_MODULE)->data($line)->exec();
if(dao::isError()) return false;
$lineID = (int)$this->dao->lastInsertID();
$lineID = $this->dao->lastInsertID();
$path = ",$lineID,";
$this->dao->update(TABLE_MODULE)->set('path')->eq($path)->set('`order`')->eq($lineID)->where('id')->eq($lineID)->exec();
@@ -601,7 +601,7 @@ class productTao extends productModel
$this->dao->insert(TABLE_DOCLIB)->data($lib)->exec();
if(dao::isError())return false;
return (int)$this->dao->lastInsertID();
return $this->dao->lastInsertID();
}
/**