zilong hace 4 años
padre
commit
853a68679c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/Helpers/functions.php

+ 2 - 2
app/Helpers/functions.php

xqd
@@ -544,13 +544,13 @@ if (!function_exists('send_wechat_message')) {
             $data = json_decode($json, true);
             $ret = $app->uniform_message->send($data);
             //如果模板消息发送失败(可能因用户没有关注公众号而失败)再发送订阅消息
-            if (isset($ret['errcode']) && $ret['errcode'] != 0) {
+            /*if (isset($ret['errcode']) && $ret['errcode'] != 0) {
                 $data = config('config.wechat_subscribe_message_template')[$type];
                 $json = json_encode($data, JSON_UNESCAPED_UNICODE);
                 $json = vsprintf($json, $subscribe_arr);
                 $data = json_decode($json, true);
                 $ret = $app->subscribe_message->send($data);
-            }
+            }*/
         } catch (Exception $e) {
             trace(['发送微信消息失败' => $e->getMessage(), '请求参数' => $data ?? '', '返回数据' => $ret ?? ''], 'error');
         }