This commit is contained in:
mkm 2024-01-04 18:20:21 +08:00
parent 295eb05d0c
commit 43c0de00ab

View File

@ -72,7 +72,7 @@ class StoreCartDao extends BaseDao
public function getAll(int $uid,$product_type,$source=0)
{
$where=['uid' => $uid, 'is_del' => 0, 'is_new' => 0, 'is_pay' => 0,'product_type' => $product_type,'source'=>$source];
if($product_type==0 &&$source>0){
if($source==103){
$where=['uid' => $uid, 'is_del' => 0, 'is_new' => 0, 'is_pay' => 0,'source'=>$source];
}
$query = ($this->getModel())::where($where)