ソースを参照

feat: NG-27: Qualified bonus regulations 奖金合格制度:活动期间购买指定商品,BV≥27即可维持活跃度.

kevin 1 年間 前
コミット
857f84b737
1 ファイル変更2 行追加1 行削除
  1. 2 1
      common/helpers/bonus/Calc/PushBaseDataToCalc.php

+ 2 - 1
common/helpers/bonus/Calc/PushBaseDataToCalc.php

@@ -551,7 +551,8 @@ class PushBaseDataToCalc extends BaseBusiness
                         $periodList = implode("','", $periodList);
 
                         $orderSn = Order::find()->select('SN')->where("IS_DELETE = 0 AND PERIOD_NUM IN ('{$periodList}')")->column();
-                        $where = 'ORDER_SN IN ("' . implode("','", $orderSn) . '")';
+                        $orderSn = implode("','", $orderSn);
+                        $where = "ORDER_SN IN ('{$orderSn}')";
                     }
 
                     $sql = $model::find()->select($field)->where($where)->limit($this->_limit)->offset($_offset * $this->_limit)->createCommand()->getRawSql();;