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);
|
$query->where('paid', 1)->where('StoreOrder.status', $where['status'])->where('pay_type', '<>', StoreGroupOrder::PAY_TYPE_CREDIT_BUY);
|
||||||
break;
|
break;
|
||||||
case 20 :
|
case 20 :
|
||||||
$query->where('paid', 1)->where('StoreOrder.status', 2);
|
$query->where('paid', 1)->whereIn('StoreOrder.status', [2, 3]);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$query->where('paid', 1)->where('StoreOrder.status', $where['status']);
|
$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)
|
public function getApiList(array $where, int $page, int $limit, $userInfo)
|
||||||
{
|
{
|
||||||
$config = systemConfig("community_app_switch");
|
$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;
|
$where['is_del'] = 0;
|
||||||
|
|
||||||
$query = $this->dao->search($where)->when(in_array(self::COMMUNITY_TYPE_RESALE, explode(',', $where['is_type'])), function ($query) {
|
$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