overtrue / easy-sms

📲 一款满足你的多种发送需求的短信发送组件
MIT License
3.1k stars 542 forks source link

云片网提示无可用网关的解决方案 #323

Open airxyy opened 2 years ago

airxyy commented 2 years ago

使用云片网网关时,会提示无可用网关,因为缺少headers信息。解决方案如下 YunpianGateway.php的$option插入(第49行)插入

            'headers' => [
              'Accept' => 'application/json; charset=utf-8;',
              'Content-Type' => 'application/x-www-form-urlencoded;charset=utf-8;'
            ],