更新
This commit is contained in:
parent
9e79002c96
commit
295eb05d0c
@ -71,7 +71,11 @@ class StoreCartDao extends BaseDao
|
||||
*/
|
||||
public function getAll(int $uid,$product_type,$source=0)
|
||||
{
|
||||
$query = ($this->getModel())::where(['uid' => $uid, 'is_del' => 0, 'is_new' => 0, 'is_pay' => 0,'product_type' => $product_type,'source'=>$source])
|
||||
$where=['uid' => $uid, 'is_del' => 0, 'is_new' => 0, 'is_pay' => 0,'product_type' => $product_type,'source'=>$source];
|
||||
if($product_type==0 &&$source>0){
|
||||
$where=['uid' => $uid, 'is_del' => 0, 'is_new' => 0, 'is_pay' => 0,'source'=>$source];
|
||||
}
|
||||
$query = ($this->getModel())::where($where)
|
||||
->with([
|
||||
'product' => function ($query) {
|
||||
$query->field('product_id,image,store_name,is_show,status,is_del,unit_name,price,mer_status,is_used,product_type,once_max_count,once_min_count,pay_limit,mer_svip_status,svip_price_type');
|
||||
|
Loading…
x
Reference in New Issue
Block a user