make(WechatUserRepository::class)->idByOpenId((int)$uid); if (!$openid) return true; $template = new Template('subscribe'); return $template->to($openid)->url($link)->send($tempCode, $data); } catch (\Exception $e) { return true; } } }