eee
This commit is contained in:
+13
-14
@@ -4,7 +4,6 @@
|
||||
namespace wchat\wx;
|
||||
|
||||
use Exception;
|
||||
use Kiri\Client;
|
||||
use wchat\common\Result;
|
||||
|
||||
|
||||
@@ -21,7 +20,7 @@ class Message extends SmallProgram
|
||||
/**
|
||||
* @param string $openid
|
||||
*/
|
||||
public function setOpenid(string $openid)
|
||||
public function setOpenid(string $openid): void
|
||||
{
|
||||
$this->msgData['touser'] = $openid;
|
||||
}
|
||||
@@ -29,7 +28,7 @@ class Message extends SmallProgram
|
||||
/**
|
||||
* @param string $content
|
||||
* @return Result
|
||||
* @throws Exception
|
||||
* @throws
|
||||
*/
|
||||
public function sendTextNews(string $content): Result
|
||||
{
|
||||
@@ -42,7 +41,7 @@ class Message extends SmallProgram
|
||||
/**
|
||||
* @param string $media_id
|
||||
* @return Result
|
||||
* @throws Exception
|
||||
* @throws
|
||||
*/
|
||||
public function sendImageNews(string $media_id): Result
|
||||
{
|
||||
@@ -56,7 +55,7 @@ class Message extends SmallProgram
|
||||
/**
|
||||
* @param string $media_id
|
||||
* @return Result
|
||||
* @throws Exception
|
||||
* @throws
|
||||
*/
|
||||
public function sendVoiceNews(string $media_id): Result
|
||||
{
|
||||
@@ -69,7 +68,7 @@ class Message extends SmallProgram
|
||||
/**
|
||||
* @param string $media_id
|
||||
* @return Result
|
||||
* @throws Exception
|
||||
* @throws
|
||||
*/
|
||||
public function sendMpNewsNews(string $media_id): Result
|
||||
{
|
||||
@@ -86,7 +85,7 @@ class Message extends SmallProgram
|
||||
* @param string $url
|
||||
* @param string $picurl
|
||||
* @return Result
|
||||
* @throws Exception
|
||||
* @throws
|
||||
*/
|
||||
public function sendNewsNews(string $title, string $description, string $url, string $picurl): Result
|
||||
{
|
||||
@@ -108,7 +107,7 @@ class Message extends SmallProgram
|
||||
/**
|
||||
* @param string $title
|
||||
* @return Result
|
||||
* @throws Exception
|
||||
* @throws
|
||||
*/
|
||||
public function sendCardNews(string $title): Result
|
||||
{
|
||||
@@ -125,7 +124,7 @@ class Message extends SmallProgram
|
||||
* @param string $title
|
||||
* @param string $description
|
||||
* @return Result
|
||||
* @throws Exception
|
||||
* @throws
|
||||
*/
|
||||
public function sendVideoNews(string $media_id, string $thumb_media_id, string $title, string $description): Result
|
||||
{
|
||||
@@ -149,7 +148,7 @@ class Message extends SmallProgram
|
||||
* @param string $title
|
||||
* @param string $description
|
||||
* @return Result
|
||||
* @throws Exception
|
||||
* @throws
|
||||
*/
|
||||
public function sendMusicNews(string $musicurl, string $hqmusicurl, string $thumb_media_id, string $title, string $description): Result
|
||||
{
|
||||
@@ -170,7 +169,7 @@ class Message extends SmallProgram
|
||||
* @param string $tail_content
|
||||
* @param array $menus
|
||||
* @return Result
|
||||
* @throws Exception
|
||||
* @throws
|
||||
*/
|
||||
public function sendMenuNews(string $head_content, string $tail_content, array $menus = []): Result
|
||||
{
|
||||
@@ -210,7 +209,7 @@ class Message extends SmallProgram
|
||||
* @param string $pagepath
|
||||
* @param string $thumb_media_id
|
||||
* @return Result
|
||||
* @throws Exception
|
||||
* @throws
|
||||
*/
|
||||
public function sendMiniprogrampageNews(string $title, string $appid, string $pagepath, string $thumb_media_id): Result
|
||||
{
|
||||
@@ -231,7 +230,7 @@ class Message extends SmallProgram
|
||||
* @param string $title
|
||||
* @param string $introduction
|
||||
* @return mixed
|
||||
* @throws Exception
|
||||
* @throws
|
||||
*/
|
||||
public function uploadFile(string $filePath, string $type, bool $isPermanent = false, string $title = '', string $introduction = ''): Result
|
||||
{
|
||||
@@ -268,7 +267,7 @@ class Message extends SmallProgram
|
||||
|
||||
/**
|
||||
* @return Result
|
||||
* @throws Exception
|
||||
* @throws
|
||||
*/
|
||||
private function sendKefuMsg(): Result
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user