Browse Source

单个门店下所有可用红包API接口更新--红包查询条件添加beginTime过滤

shizhongqi 4 months ago
parent
commit
fa5f66a8da
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app-mall/controllers/HbController.php

+ 1 - 0
app-mall/controllers/HbController.php

@@ -39,6 +39,7 @@ class HbController extends BaseController
         $where = [];
         $where['customId'] = $this->customId;
         $where['status'] = 0;
+        $where['beginTime<='] = time();
         $list = HbClass::getAllByCondition($where, 'id DESC');
         //已经过期的就不再显示,并且作废,多有处作废操作,搜索关键词 cancellation_hb
         if (!empty($list)) {