shish vor 7 Monaten
Ursprung
Commit
0d3ef84029
1 geänderte Dateien mit 7 neuen und 3 gelöschten Zeilen
  1. 7 3
      app-ghs/controllers/TestController.php

+ 7 - 3
app-ghs/controllers/TestController.php

@@ -57,9 +57,13 @@ class TestController extends BaseController
 //            HdNotifyClass::ptErrorNotify($orderId, $event);
 //        }
 
-        $producer = Yii::$app->rabbitmq->getProducer('customProducer');
-        $msg = serialize(['type' => 'pull_custom_from_other_shop', 'toShopId' => 7609, 'fromShopId' => 33904]);
-        $producer->publish($msg, 'customExchange', 'customRoute', ['delivery_mode' => 2, 'content_type' => 'application/octet-stream']);
+//        $producer = Yii::$app->rabbitmq->getProducer('customProducer');
+//        $msg = serialize(['type' => 'pull_custom_from_other_shop', 'toShopId' => 7609, 'fromShopId' => 33904]);
+//        $producer->publish($msg, 'customExchange', 'customRoute', ['delivery_mode' => 2, 'content_type' => 'application/octet-stream']);
+
+        ini_set('memory_limit', '2045M');
+        set_time_limit(0);
+        CustomClass::pullOtherShopCustom(['toShopId'=>7609,'fromShopId'=>33904]);
 
     }