shish 4 months ago
parent
commit
72b5a37799
1 changed files with 4 additions and 0 deletions
  1. 4 0
      console/controllers/CustomController.php

+ 4 - 0
console/controllers/CustomController.php

@@ -148,6 +148,10 @@ class CustomController extends Controller
     // 把所有客户的累计消费和成长值、积分都刷新一下
     public function actionRefreshCustomData()
     {
+
+        ini_set('memory_limit', '2045M');
+        set_time_limit(0);
+
         try{
             // 1. 查询 xhShop 表,获取所有 ptStyle = 1 的门店数据
             $allShops = \bizHd\shop\classes\ShopClass::getAllByCondition(['ptStyle'=>1, 'status'=>1], 'id ASC', 'id, mainId');