|
@@ -19,8 +19,12 @@ class GZHSendKFMessageService
|
|
|
*/
|
|
|
public static function sendText($officialAccount, $openid, $content, $traceContext) {
|
|
|
try {
|
|
|
- $officialAccount->customer_service->message($content)
|
|
|
+ $res = $officialAccount->customer_service->message($content)
|
|
|
->to($openid)->send();
|
|
|
+ myLog('KFMessageSend')->debug('客服消息发送结果:', [
|
|
|
+ 'res' => $res,
|
|
|
+ 'traceInfo' => $traceContext->getTraceInfo()
|
|
|
+ ]);
|
|
|
return true;
|
|
|
} catch (\Throwable $exception) {
|
|
|
myLog('KFMessageSend')->error('发送客服消息失败', [
|