Commit 3c438075 by xmy

feat:即时配送

parent ee70c224
......@@ -261,9 +261,9 @@ class Topic
do {
try {
$res = $this->publish_message($cryptMessage, $vTagList, $routingKey);
if($res['code'] == 0) break;
} catch(\Throwable $e) {
App::error("[消息队列异常]:".var_export($e, true));
if ($res['code'] == 0) break;
} catch (\Throwable $e) {
App::error("[消息队列异常]:" . $e->getFile() . $e->getMessage(), $e->getLine());
}
$tryTimes++;
} while ($tryTimes < 3);
......@@ -277,7 +277,7 @@ class Topic
return $res;
}
protected function TopicLog($message, $cryptMessage, $tagName, $response, $status=0)
protected function TopicLog($message, $cryptMessage, $tagName, $response, $status = 0)
{
$data = [
'tagName' => $tagName,
......@@ -291,8 +291,8 @@ class Topic
try {
$db = CfgCenter::dbConnect();
$db->insert('topic_log', $data);
}catch (\Exception $e){
App::error("消息主题日志记录失败:".$e->getMessage().'---'.json_encode($data));
} catch (\Exception $e) {
App::error("消息主题日志记录失败:" . $e->getMessage() . '---' . json_encode($data));
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment