|
@@ -552,6 +552,9 @@ if (!function_exists('send_wechat_message')) {
|
|
$json = vsprintf($json, $subscribe_arr);
|
|
$json = vsprintf($json, $subscribe_arr);
|
|
$data = json_decode($json, true);
|
|
$data = json_decode($json, true);
|
|
$ret = $app->subscribe_message->send($data);
|
|
$ret = $app->subscribe_message->send($data);
|
|
|
|
+ if (isset($ret['errcode']) && $ret['errcode'] != 0) {
|
|
|
|
+ trace(['发送微信订阅消息失败,请求参数' => $data ?? '', '返回数据' => $ret ?? ''], 'error');
|
|
|
|
+ }
|
|
}
|
|
}
|
|
} catch (Exception $e) {
|
|
} catch (Exception $e) {
|
|
trace(['发送微信消息失败' => $e->getMessage(), '请求参数' => $data ?? '', '返回数据' => $ret ?? ''], 'error');
|
|
trace(['发送微信消息失败' => $e->getMessage(), '请求参数' => $data ?? '', '返回数据' => $ret ?? ''], 'error');
|