Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
easy-sms
提交
44095b4a
E
easy-sms
项目概览
OpenDocCN
/
easy-sms
通知
3
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
easy-sms
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
44095b4a
编写于
12月 21, 2017
作者:
安
安正超
提交者:
GitHub
12月 21, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Apply fixes from StyleCI (#56)
[ci skip] [skip ci]
上级
5cac24b7
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
29 addition
and
0 deletion
+29
-0
src/Contracts/MessageInterface.php
src/Contracts/MessageInterface.php
+1
-0
src/Gateways/AlidayuGateway.php
src/Gateways/AlidayuGateway.php
+3
-0
src/Gateways/AliyunGateway.php
src/Gateways/AliyunGateway.php
+6
-0
src/Gateways/BaiduGateway.php
src/Gateways/BaiduGateway.php
+4
-0
src/Gateways/HuyiGateway.php
src/Gateways/HuyiGateway.php
+2
-0
src/Gateways/JuheGateway.php
src/Gateways/JuheGateway.php
+1
-0
src/Gateways/LuosimaoGateway.php
src/Gateways/LuosimaoGateway.php
+2
-0
src/Gateways/SubmailGateway.php
src/Gateways/SubmailGateway.php
+1
-0
src/Gateways/YunpianGateway.php
src/Gateways/YunpianGateway.php
+2
-0
src/Gateways/YuntongxunGateway.php
src/Gateways/YuntongxunGateway.php
+6
-0
src/Messenger.php
src/Messenger.php
+1
-0
未找到文件。
src/Contracts/MessageInterface.php
浏览文件 @
44095b4a
...
@@ -17,6 +17,7 @@ namespace Overtrue\EasySms\Contracts;
...
@@ -17,6 +17,7 @@ namespace Overtrue\EasySms\Contracts;
interface
MessageInterface
interface
MessageInterface
{
{
const
TEXT_MESSAGE
=
'text'
;
const
TEXT_MESSAGE
=
'text'
;
const
VOICE_MESSAGE
=
'voice'
;
const
VOICE_MESSAGE
=
'voice'
;
/**
/**
...
...
src/Gateways/AlidayuGateway.php
浏览文件 @
44095b4a
...
@@ -26,8 +26,11 @@ class AlidayuGateway extends Gateway
...
@@ -26,8 +26,11 @@ class AlidayuGateway extends Gateway
use
HasHttpRequest
;
use
HasHttpRequest
;
const
ENDPOINT_URL
=
'https://eco.taobao.com/router/rest'
;
const
ENDPOINT_URL
=
'https://eco.taobao.com/router/rest'
;
const
ENDPOINT_METHOD
=
'alibaba.aliqin.fc.sms.num.send'
;
const
ENDPOINT_METHOD
=
'alibaba.aliqin.fc.sms.num.send'
;
const
ENDPOINT_VERSION
=
'2.0'
;
const
ENDPOINT_VERSION
=
'2.0'
;
const
ENDPOINT_FORMAT
=
'json'
;
const
ENDPOINT_FORMAT
=
'json'
;
/**
/**
...
...
src/Gateways/AliyunGateway.php
浏览文件 @
44095b4a
...
@@ -28,11 +28,17 @@ class AliyunGateway extends Gateway
...
@@ -28,11 +28,17 @@ class AliyunGateway extends Gateway
use
HasHttpRequest
;
use
HasHttpRequest
;
const
ENDPOINT_URL
=
'http://dysmsapi.aliyuncs.com'
;
const
ENDPOINT_URL
=
'http://dysmsapi.aliyuncs.com'
;
const
ENDPOINT_METHOD
=
'SendSms'
;
const
ENDPOINT_METHOD
=
'SendSms'
;
const
ENDPOINT_VERSION
=
'2017-05-25'
;
const
ENDPOINT_VERSION
=
'2017-05-25'
;
const
ENDPOINT_FORMAT
=
'JSON'
;
const
ENDPOINT_FORMAT
=
'JSON'
;
const
ENDPOINT_REGION_ID
=
'cn-hangzhou'
;
const
ENDPOINT_REGION_ID
=
'cn-hangzhou'
;
const
ENDPOINT_SIGNATURE_METHOD
=
'HMAC-SHA1'
;
const
ENDPOINT_SIGNATURE_METHOD
=
'HMAC-SHA1'
;
const
ENDPOINT_SIGNATURE_VERSION
=
'1.0'
;
const
ENDPOINT_SIGNATURE_VERSION
=
'1.0'
;
/**
/**
...
...
src/Gateways/BaiduGateway.php
浏览文件 @
44095b4a
...
@@ -26,9 +26,13 @@ class BaiduGateway extends Gateway
...
@@ -26,9 +26,13 @@ class BaiduGateway extends Gateway
use
HasHttpRequest
;
use
HasHttpRequest
;
const
ENDPOINT_HOST
=
'sms.bj.baidubce.com'
;
const
ENDPOINT_HOST
=
'sms.bj.baidubce.com'
;
const
ENDPOINT_URI
=
'/bce/v2/message'
;
const
ENDPOINT_URI
=
'/bce/v2/message'
;
const
BCE_AUTH_VERSION
=
'bce-auth-v1'
;
const
BCE_AUTH_VERSION
=
'bce-auth-v1'
;
const
DEFAULT_EXPIRATION_IN_SECONDS
=
1800
;
//签名有效期默认1800秒
const
DEFAULT_EXPIRATION_IN_SECONDS
=
1800
;
//签名有效期默认1800秒
const
SUCCESS_CODE
=
1000
;
const
SUCCESS_CODE
=
1000
;
/**
/**
...
...
src/Gateways/HuyiGateway.php
浏览文件 @
44095b4a
...
@@ -26,7 +26,9 @@ class HuyiGateway extends Gateway
...
@@ -26,7 +26,9 @@ class HuyiGateway extends Gateway
use
HasHttpRequest
;
use
HasHttpRequest
;
const
ENDPOINT_URL
=
'http://106.ihuyi.com/webservice/sms.php?method=Submit'
;
const
ENDPOINT_URL
=
'http://106.ihuyi.com/webservice/sms.php?method=Submit'
;
const
ENDPOINT_FORMAT
=
'json'
;
const
ENDPOINT_FORMAT
=
'json'
;
const
SUCCESS_CODE
=
2
;
const
SUCCESS_CODE
=
2
;
/**
/**
...
...
src/Gateways/JuheGateway.php
浏览文件 @
44095b4a
...
@@ -26,6 +26,7 @@ class JuheGateway extends Gateway
...
@@ -26,6 +26,7 @@ class JuheGateway extends Gateway
use
HasHttpRequest
;
use
HasHttpRequest
;
const
ENDPOINT_URL
=
'http://v.juhe.cn/sms/send'
;
const
ENDPOINT_URL
=
'http://v.juhe.cn/sms/send'
;
const
ENDPOINT_FORMAT
=
'json'
;
const
ENDPOINT_FORMAT
=
'json'
;
/**
/**
...
...
src/Gateways/LuosimaoGateway.php
浏览文件 @
44095b4a
...
@@ -26,7 +26,9 @@ class LuosimaoGateway extends Gateway
...
@@ -26,7 +26,9 @@ class LuosimaoGateway extends Gateway
use
HasHttpRequest
;
use
HasHttpRequest
;
const
ENDPOINT_TEMPLATE
=
'https://%s.luosimao.com/%s/%s.%s'
;
const
ENDPOINT_TEMPLATE
=
'https://%s.luosimao.com/%s/%s.%s'
;
const
ENDPOINT_VERSION
=
'v1'
;
const
ENDPOINT_VERSION
=
'v1'
;
const
ENDPOINT_FORMAT
=
'json'
;
const
ENDPOINT_FORMAT
=
'json'
;
/**
/**
...
...
src/Gateways/SubmailGateway.php
浏览文件 @
44095b4a
...
@@ -26,6 +26,7 @@ class SubmailGateway extends Gateway
...
@@ -26,6 +26,7 @@ class SubmailGateway extends Gateway
use
HasHttpRequest
;
use
HasHttpRequest
;
const
ENDPOINT_TEMPLATE
=
'https://api.mysubmail.com/message/%s.%s'
;
const
ENDPOINT_TEMPLATE
=
'https://api.mysubmail.com/message/%s.%s'
;
const
ENDPOINT_FORMAT
=
'json'
;
const
ENDPOINT_FORMAT
=
'json'
;
/**
/**
...
...
src/Gateways/YunpianGateway.php
浏览文件 @
44095b4a
...
@@ -26,7 +26,9 @@ class YunpianGateway extends Gateway
...
@@ -26,7 +26,9 @@ class YunpianGateway extends Gateway
use
HasHttpRequest
;
use
HasHttpRequest
;
const
ENDPOINT_TEMPLATE
=
'https://%s.yunpian.com/%s/%s/%s.%s'
;
const
ENDPOINT_TEMPLATE
=
'https://%s.yunpian.com/%s/%s/%s.%s'
;
const
ENDPOINT_VERSION
=
'v2'
;
const
ENDPOINT_VERSION
=
'v2'
;
const
ENDPOINT_FORMAT
=
'json'
;
const
ENDPOINT_FORMAT
=
'json'
;
/**
/**
...
...
src/Gateways/YuntongxunGateway.php
浏览文件 @
44095b4a
...
@@ -26,11 +26,17 @@ class YuntongxunGateway extends Gateway
...
@@ -26,11 +26,17 @@ class YuntongxunGateway extends Gateway
use
HasHttpRequest
;
use
HasHttpRequest
;
const
ENDPOINT_TEMPLATE
=
'https://%s:%s/%s/%s/%s/%s/%s?sig=%s'
;
const
ENDPOINT_TEMPLATE
=
'https://%s:%s/%s/%s/%s/%s/%s?sig=%s'
;
const
SERVER_IP
=
'app.cloopen.com'
;
const
SERVER_IP
=
'app.cloopen.com'
;
const
DEBUG_SERVER_IP
=
'sandboxapp.cloopen.com'
;
const
DEBUG_SERVER_IP
=
'sandboxapp.cloopen.com'
;
const
DEBUG_TEMPLATE_ID
=
1
;
const
DEBUG_TEMPLATE_ID
=
1
;
const
SERVER_PORT
=
'8883'
;
const
SERVER_PORT
=
'8883'
;
const
SDK_VERSION
=
'2013-12-26'
;
const
SDK_VERSION
=
'2013-12-26'
;
const
SUCCESS_CODE
=
'000000'
;
const
SUCCESS_CODE
=
'000000'
;
/**
/**
...
...
src/Messenger.php
浏览文件 @
44095b4a
...
@@ -22,6 +22,7 @@ use Overtrue\EasySms\Support\Config;
...
@@ -22,6 +22,7 @@ use Overtrue\EasySms\Support\Config;
class
Messenger
class
Messenger
{
{
const
STATUS_SUCCESS
=
'success'
;
const
STATUS_SUCCESS
=
'success'
;
const
STATUS_FAILURE
=
'failure'
;
const
STATUS_FAILURE
=
'failure'
;
/**
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录