去除获取处方平台状态退款消息推送(回调会推)。

This commit is contained in:
2023-04-24 17:34:53 +08:00
parent bbc1135e56
commit 0902ca321d
6 changed files with 108 additions and 92 deletions
+4 -2
View File
@@ -17,6 +17,7 @@ use App\Model\Product;
use App\Model\SystemInquiryConfig;
use App\Model\User;
use App\Model\UserDoctor;
use App\Utils\Log;
use Hyperf\Amqp\Producer;
use Hyperf\Utils\ApplicationContext;
use Psr\Container\ContainerExceptionInterface;
@@ -1300,7 +1301,7 @@ class MessagePush extends BaseService
$params['order_prescription_id'] = $order_prescription_id;
$order_prescription = OrderPrescription::getOne($params);
if (empty($order_prescription)) {
throw new BusinessException("加入推送队列失败:处方数据为空");
return false;
}
// 订阅
@@ -1337,7 +1338,8 @@ class MessagePush extends BaseService
throw new BusinessException("加入推送队列失败" . json_encode($data,JSON_UNESCAPED_UNICODE));
}
} catch (\Exception $e) {
throw new BusinessException("加入推送队列失败" . $e->getMessage());
Log::getInstance("MessagePush")->error("错误:" . $e->getMessage());
return false;
}
return true;