Merge branch 'feature/purchase_record' into dev
This commit is contained in:
commit
1e5fd979b4
@ -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']);
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user