toplan / laravel-sms

:iphone::heavy_check_mark:A phone number validation solution based on laravel
MIT License
838 stars 174 forks source link

SUBMAIL 发送成功后有错误信息 #15

Closed zhuzhichao closed 9 years ago

zhuzhichao commented 9 years ago

SUBMAIL 成功的时候没有返回 msg,导致发送信息后提示错误。

Undefined index: msg(30行) /Path/To/WWW/vendor/toplan/laravel-sms/src/Toplan/LaravelSms/agents/SubMailAgent.php

以下是SUBMAIL官方提供的返回内容。

http://submail.cn/chs/documents/developer/t2f1J2 请求成功

{ "status":"success" "send_id":"093c0a7df143c087d6cba9cdf0cf3738" "sms_credits":14197 } 请求失败

{ "status":"error", "code":"1xx", "msg":"error message" }

zhuzhichao commented 9 years ago

成功的情况下也没有code

toplan commented 9 years ago

嗯。了解了,这里可能是官方接口发送了变动,或则是以前这里就有问题。谢谢反馈,我马上更改。

zhuzhichao commented 9 years ago

谢谢了,回复挺快的!我先本地改了,领导着急,没有推PR。

toplan commented 9 years ago

已提交更新 :smile:

zhuzhichao commented 9 years ago

赞!!!太棒了

toplan commented 9 years ago

:smile: thanks for your support