Merge branch 'feature/purchase_record' into dev

This commit is contained in:
luofei 2023-07-18 09:50:09 +08:00
commit 1e5fd979b4
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ class StoreOrderDao extends BaseDao
$query->where('paid', 1)->where('StoreOrder.status', $where['status'])->where('pay_type', '<>', StoreGroupOrder::PAY_TYPE_CREDIT_BUY);
break;
case 20 :
$query->where('paid', 1)->where('StoreOrder.status', 2);
$query->where('paid', 1)->whereIn('StoreOrder.status', [2, 3]);
break;
default:
$query->where('paid', 1)->where('StoreOrder.status', $where['status']);

View File

@ -96,7 +96,7 @@ class CommunityRepository extends BaseRepository
public function getApiList(array $where, int $page, int $limit, $userInfo)
{
$config = systemConfig("community_app_switch");
if (!isset($where['is_type']) && $config) $where['is_type'] = $config;
if (!isset($where['is_type']) && $config) $where['is_type'] = is_array($config) ? implode(',', $config) : $config;
$where['is_del'] = 0;
$query = $this->dao->search($where)->when(in_array(self::COMMUNITY_TYPE_RESALE, explode(',', $where['is_type'])), function ($query) {