|
|
@@ -903,9 +903,11 @@ class MiniProgramService
|
|
|
case 'text':
|
|
|
$content = trim((string)($message->Content ?? ''));
|
|
|
$openid = (string)($message->FromUserName ?? '');
|
|
|
+ Log::error('小程序客服回调进入text分支:' . json_encode($message, JSON_UNESCAPED_UNICODE));
|
|
|
if ($content !== '' && $openid !== '') {
|
|
|
$messageId = (string)($message->MsgId ?? md5($openid . $content . ($message->CreateTime ?? time())));
|
|
|
- MiniProgramKefuReplyJob::dispatchAsync($openid, $content, $messageId);
|
|
|
+ $dispatchRes = MiniProgramKefuReplyJob::dispatchAsync($openid, $content, $messageId);
|
|
|
+ Log::error('小程序客服Coze已入队:openid=' . $openid . ' content=' . $content . ' messageId=' . $messageId . ' result=' . json_encode($dispatchRes, JSON_UNESCAPED_UNICODE));
|
|
|
}
|
|
|
return 'success';
|
|
|
case 'event':
|