Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
easy-sms
提交
908181b2
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,发现更多精彩内容 >>
未验证
提交
908181b2
编写于
11月 08, 2017
作者:
安
安正超
提交者:
GitHub
11月 08, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Apply fixes from StyleCI (#49)
[ci skip] [skip ci]
上级
af14136e
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
7 addition
and
7 deletion
+7
-7
src/Gateways/AliyunGateway.php
src/Gateways/AliyunGateway.php
+1
-1
src/Gateways/BaiduGateway.php
src/Gateways/BaiduGateway.php
+1
-1
src/Gateways/HuaxinGateway.php
src/Gateways/HuaxinGateway.php
+1
-1
src/Gateways/HuyiGateway.php
src/Gateways/HuyiGateway.php
+1
-1
src/Gateways/SubmailGateway.php
src/Gateways/SubmailGateway.php
+1
-1
src/Gateways/YuntongxunGateway.php
src/Gateways/YuntongxunGateway.php
+1
-1
tests/Gateways/SendcloudGatewayTest.php
tests/Gateways/SendcloudGatewayTest.php
+1
-1
未找到文件。
src/Gateways/AliyunGateway.php
浏览文件 @
908181b2
...
...
@@ -66,7 +66,7 @@ class AliyunGateway extends Gateway
$result
=
$this
->
get
(
self
::
ENDPOINT_URL
,
$params
);
if
(
$result
[
'Code'
]
!=
'OK'
)
{
if
(
'OK'
!=
$result
[
'Code'
]
)
{
throw
new
GatewayErrorException
(
$result
[
'Message'
],
$result
[
'Code'
],
$result
);
}
...
...
src/Gateways/BaiduGateway.php
浏览文件 @
908181b2
...
...
@@ -66,7 +66,7 @@ class BaiduGateway extends Gateway
$result
=
$this
->
request
(
'post'
,
self
::
buildEndpoint
(
$config
),
[
'headers'
=>
$headers
,
'json'
=>
$params
]);
if
(
$result
[
'code'
]
!=
self
::
SUCCESS_CODE
)
{
if
(
self
::
SUCCESS_CODE
!=
$result
[
'code'
]
)
{
throw
new
GatewayErrorException
(
$result
[
'message'
],
$result
[
'code'
],
$result
);
}
...
...
src/Gateways/HuaxinGateway.php
浏览文件 @
908181b2
...
...
@@ -51,7 +51,7 @@ class HuaxinGateway extends Gateway
'extno'
=>
$config
->
get
(
'ext_no'
),
]);
if
(
$result
[
'returnstatus'
]
!==
'Success'
)
{
if
(
'Success'
!==
$result
[
'returnstatus'
]
)
{
throw
new
GatewayErrorException
(
$result
[
'message'
],
400
,
$result
);
}
...
...
src/Gateways/HuyiGateway.php
浏览文件 @
908181b2
...
...
@@ -52,7 +52,7 @@ class HuyiGateway extends Gateway
$result
=
$this
->
post
(
self
::
ENDPOINT_URL
,
$params
);
if
(
$result
[
'code'
]
!=
self
::
SUCCESS_CODE
)
{
if
(
self
::
SUCCESS_CODE
!=
$result
[
'code'
]
)
{
throw
new
GatewayErrorException
(
$result
[
'msg'
],
$result
[
'code'
],
$result
);
}
...
...
src/Gateways/SubmailGateway.php
浏览文件 @
908181b2
...
...
@@ -49,7 +49,7 @@ class SubmailGateway extends Gateway
'vars'
=>
json_encode
(
$message
->
getData
(
$this
),
JSON_FORCE_OBJECT
),
]);
if
(
$result
[
'status'
]
!=
'success'
)
{
if
(
'success'
!=
$result
[
'status'
]
)
{
throw
new
GatewayErrorException
(
$result
[
'msg'
],
$result
[
'code'
],
$result
);
}
...
...
src/Gateways/YuntongxunGateway.php
浏览文件 @
908181b2
...
...
@@ -62,7 +62,7 @@ class YuntongxunGateway extends Gateway
],
]);
if
(
$result
[
'statusCode'
]
!=
self
::
SUCCESS_CODE
)
{
if
(
self
::
SUCCESS_CODE
!=
$result
[
'statusCode'
]
)
{
throw
new
GatewayErrorException
(
$result
[
'statusCode'
],
$result
[
'statusCode'
],
$result
);
}
...
...
tests/Gateways/SendcloudGatewayTest.php
浏览文件 @
908181b2
...
...
@@ -96,7 +96,7 @@ class SendcloudGatewayTest extends TestCase
$gateway
->
shouldReceive
(
'post'
)
->
with
(
sprintf
(
SendcloudGateway
::
ENDPOINT_TEMPLATE
,
'send'
),
\
Mockery
::
on
(
function
(
$params
)
{
return
isset
(
$params
[
'timestamp'
])
&&
strlen
(
$params
[
'timestamp'
])
==
13
&&
$params
[
'timestamp'
]
<=
time
()
*
1000
;
return
isset
(
$params
[
'timestamp'
])
&&
13
==
strlen
(
$params
[
'timestamp'
])
&&
$params
[
'timestamp'
]
<=
time
()
*
1000
;
}))
->
andReturn
([
'message'
=>
'操作成功'
,
'result'
=>
true
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录