This commit is contained in:
liuyongkai
2023-03-02 17:27:44 +08:00
parent 179d3998f2
commit bc54729fff
+1
View File
@@ -1447,6 +1447,7 @@ class projectModel extends model
$this->dao->insert(TABLE_PRODUCT)->data($product)->exec();
$productID = $this->dao->lastInsertId();
$this->loadModel('personnel')->updateWhitelist($whitelist, 'product', $productID);
$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');