w7corp / easywechat

📦 一个 PHP 微信 SDK
https://easywechat.com
MIT License
10.29k stars 2.4k forks source link

企业微信发送小程序通知 #1725

Closed dudashuang closed 2 years ago

dudashuang commented 5 years ago

我用的环境

问题及现象

// vendor/overtrue/wechat/src/Work/Message/Messenger.php:164

public function send($message = null)
    {
        if ($message) {
            $this->message($message);
        }

        if (empty($this->message)) {
            throw new RuntimeException('No message to send.');
        }

        if (is_null($this->agentId)) {
            throw new RuntimeException('No agentid specified.');
        }

        $message = $this->message->transformForJsonRequest(array_merge([
            'agentid' => $this->agentId,
            'safe' => intval($this->secretive),
        ], $this->to));

        $this->secretive = false;

        return $this->client->send($message);
    }
ezsky commented 4 years ago

强烈关注,在V5出来之前有没有替代方案?