|
|
|
|
@ -259,11 +259,7 @@ class SendNotification extends Command
|
|
|
|
|
*/
|
|
|
|
|
public function urlLink()
|
|
|
|
|
{
|
|
|
|
|
$config = [
|
|
|
|
|
'app_id' => config('app.applet_appid'),
|
|
|
|
|
'secret' => config('app.applet_secret')
|
|
|
|
|
];
|
|
|
|
|
$app = Factory::miniProgram($config);
|
|
|
|
|
$app = Factory::miniProgram(miniProgramConfig());
|
|
|
|
|
$result = $app->url_link->generate([]);
|
|
|
|
|
return $result['url_link'] ?? '';
|
|
|
|
|
}
|
|
|
|
|
@ -273,11 +269,7 @@ class SendNotification extends Command
|
|
|
|
|
*/
|
|
|
|
|
public function appletNotice($vo, $sendData)
|
|
|
|
|
{
|
|
|
|
|
$config = [
|
|
|
|
|
'app_id' => config('app.applet_appid'),
|
|
|
|
|
'secret' => config('app.applet_secret')
|
|
|
|
|
];
|
|
|
|
|
$app = Factory::miniProgram($config);
|
|
|
|
|
$app = Factory::miniProgram(miniProgramConfig());
|
|
|
|
|
$result = $app->subscribe_message->send($sendData);
|
|
|
|
|
// 写记录
|
|
|
|
|
$vo->via_times++;
|
|
|
|
|
|