Merge branch 'sprint/168_sgm_43396' into 'sprint/168'

* Add bind product action.

See merge request easycorp/zentaopms!166
This commit is contained in:
李玉春
2021-10-27 02:55:51 +00:00
+1
View File
@@ -868,6 +868,7 @@ class projectModel extends model
$this->dao->insert(TABLE_PRODUCT)->data($product)->exec();
$productID = $this->dao->lastInsertId();
$this->loadModel('action')->create('product', $productID, 'opened');
$this->dao->update(TABLE_PRODUCT)->set('`order`')->eq($productID * 5)->where('id')->eq($productID)->exec();
if($product->acl != 'open') $this->loadModel('user')->updateUserView($productID, 'product');