|
|
@@ -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]);
|
|
|
|
|
|
}
|
|
|
|