0
0
lin преди 6 години
родител
ревизия
043bbc43dc
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      backend/forms/SubscribeForm.php

+ 4 - 2
backend/forms/SubscribeForm.php

@@ -81,9 +81,11 @@ class SubscribeForm extends BaseForm
 		try {
 			$connect = $this->getConnect();
 			$channel = $connect->channel();
-			$channel->queue_unbind($this->name, false, false );
+			$channel->queue_unbind($this->endpoint, $this->topicName, false );
+
+            list($subscriptionName,,) =  $channel->queue_unbind($this->endpoint, $this->topicName,  is_null($this->bindingKey)?'*':$this->bindingKey);
 			return [
-				'name' => $this->name,
+				'name' => $this->endpoint,
 				'result' => '删除成功'
 			];