Skip to content

Commit

Permalink
wip PushPlus
Browse files Browse the repository at this point in the history
  • Loading branch information
guanguans committed Feb 4, 2024
1 parent 57afa6e commit b514a5c
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/PushPlus/Messages/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

use Guanguans\Notify\Foundation\Concerns\AsJson;
use Guanguans\Notify\Foundation\Concerns\AsPost;
use Guanguans\Notify\PushPlus\Credential;
use Guanguans\Notify\Foundation\Credentials\TokenUriTemplateCredential;

/**
* @method \Guanguans\Notify\PushPlus\Messages\Message title($title)
Expand All @@ -28,9 +28,6 @@ class Message extends \Guanguans\Notify\Foundation\Message
use AsJson;
use AsPost;

/**
* @var array<string>
*/
protected array $defined = [
'title',
'content',
Expand All @@ -39,22 +36,16 @@ class Message extends \Guanguans\Notify\Foundation\Message
'token',
];

/**
* @var array<string>
*/
protected array $required = [
'content',
];

/**
* @var array<array<\string>>
*/
protected array $allowedValues = [
'template' => ['html', 'json', 'cloudMonitor'],
];

public function toHttpUri()
{
return sprintf('https://www.pushplus.plus/send?token=%s', Credential::TEMPLATE);
return sprintf('https://www.pushplus.plus/send?token={%s}', TokenUriTemplateCredential::TEMPLATE);
}
}

0 comments on commit b514a5c

Please sign in to comment.