sendTemplate($openid,$tempid,$data,$stie_url,$color,[ 'appid' => systemConfig('routine_appId'), ]); } catch (\Exception $e) { Log::error('发送给openid为:' . $openid . '微信模板消息失败,模板id为:' . $tempid . ';错误原因为:' . $e->getMessage()); return $e->getMessage(); } } }