@ -155,6 +155,10 @@ class MiniprogramService implements MiniprogramServiceInterface
*/
public function sendTempMsg($openid, $template_id, $data, $redirect_url = '', $applet_config = ['appid' => '', 'pagepath' => ''])
{
if (empty($openid) || empty($template_id) || empty($data)) {
return ;
}
// 先拼个基础的
$template = [
'touser' => $openid,