-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bill li
committed
Apr 22, 2018
1 parent
91478e5
commit 9e42200
Showing
22 changed files
with
179 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
<?php | ||
|
||
namespace AnomalyLab\LuminousSMS\Contracts; | ||
namespace Ofcold\LuminousSMS\Contracts; | ||
|
||
/** | ||
* Interface HandlerInterface | ||
* | ||
* @link https://anomaly.ink | ||
* @author Anomaly lab, Inc <[email protected]> | ||
* @author Bill Li <[email protected]> | ||
* @package AnomalyLab\LuminousSMS\Contracts\HandlerInterface | ||
* @link https://ofcold.com | ||
* | ||
* @author Ofcold, Inc <[email protected]> | ||
* @author Bill Li <[email protected]> | ||
* | ||
* @package Ofcold\LuminousSMS\Contracts\HandlerInterface | ||
*/ | ||
interface HandlerInterface | ||
{ | ||
|
@@ -25,11 +27,11 @@ public function getName() : string; | |
* The current drive service providers to implement push information content. | ||
* | ||
* @param int|string $to | ||
* @param \AnomalyLab\LuminousSMS\Contracts\MessagerInterface $messager | ||
* @param \Ofcold\LuminousSMS\Contracts\MessagerInterface $messager | ||
* | ||
* @return array | ||
* | ||
* @throws \AnomalyLab\LuminousSMS\Exceptions\HandlerBadException; | ||
* @throws \Ofcold\LuminousSMS\Exceptions\HandlerBadException; | ||
*/ | ||
public function send(MessagerInterface $messager) : array; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
<?php | ||
|
||
namespace AnomalyLab\LuminousSMS\Contracts; | ||
namespace Ofcold\LuminousSMS\Contracts; | ||
|
||
/** | ||
* Interface MessagerInterface | ||
* | ||
* @link https://anomaly.ink | ||
* @author Anomaly lab, Inc <[email protected]> | ||
* @author Bill Li <[email protected]> | ||
* @package AnomalyLab\LuminousSMS\Contracts\MessagerInterface | ||
* @link https://ofcold.com | ||
* | ||
* @author Ofcold, Inc <[email protected]> | ||
* @author Bill Li <[email protected]> | ||
* | ||
* @package Ofcold\LuminousSMS\Contracts\MessagerInterface | ||
*/ | ||
interface MessagerInterface | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
<?php | ||
|
||
namespace AnomalyLab\LuminousSMS\Exceptions; | ||
namespace Ofcold\LuminousSMS\Exceptions; | ||
|
||
use Exception; | ||
|
||
/** | ||
* Class HandlerBadException | ||
* | ||
* @link https://anomaly.ink | ||
* @link https://ofcold.com | ||
* | ||
* @author Anomaly lab, Inc <support@anomaly.ink> | ||
* @author Bill Li <bill@anomaly.ink> | ||
* @author Ofcold, Inc <support@ofcold.com> | ||
* @author Bill Li <bill[email protected]> | ||
* | ||
* @package AnomalyLab\LuminousSMS\Exceptions\HandlerBadException | ||
* @package Ofcold\LuminousSMS\Exceptions\HandlerBadException | ||
*/ | ||
class HandlerBadException extends Exception | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
<?php | ||
|
||
namespace AnomalyLab\LuminousSMS\Handlers; | ||
namespace Ofcold\LuminousSMS\Handlers; | ||
|
||
use AnomalyLab\LuminousSMS\Exceptions\HandlerBadException; | ||
use AnomalyLab\LuminousSMS\Contracts\MessagerInterface; | ||
use AnomalyLab\LuminousSMS\Support\Arrays; | ||
use Ofcold\LuminousSMS\Exceptions\HandlerBadException; | ||
use Ofcold\LuminousSMS\Contracts\MessagerInterface; | ||
use Ofcold\LuminousSMS\Support\Arrays; | ||
|
||
/** | ||
* Class Alidayu | ||
* | ||
* @link https://anomaly.ink | ||
* @author Anomaly lab, Inc <[email protected]> | ||
* @author Bill Li <[email protected]> | ||
* @package AnomalyLab\LuminousSMS\Handlers\Alidayu | ||
* @link https://ofcold.com | ||
* | ||
* @author Ofcold, Inc <[email protected]> | ||
* @author Bill Li <[email protected]> | ||
* | ||
* @package Ofcold\LuminousSMS\Handlers\Alidayu | ||
*/ | ||
class Alidayu extends Handler | ||
{ | ||
|
@@ -36,11 +38,11 @@ class Alidayu extends Handler | |
* | ||
* The current drive service providers to implement push information content. | ||
* | ||
* @param \AnomalyLab\LuminousSMS\Contracts\MessagerInterface $messager | ||
* @param \Ofcold\LuminousSMS\Contracts\MessagerInterface $messager | ||
* | ||
* @return array | ||
* | ||
* @throws \AnomalyLab\LuminousSMS\Exceptions\HandlerBadException; | ||
* @throws \Ofcold\LuminousSMS\Exceptions\HandlerBadException; | ||
*/ | ||
public function send(MessagerInterface $messager) : array | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
<?php | ||
|
||
namespace AnomalyLab\LuminousSMS\Handlers; | ||
namespace Ofcold\LuminousSMS\Handlers; | ||
|
||
use AnomalyLab\LuminousSMS\Exceptions\HandlerBadException; | ||
use AnomalyLab\LuminousSMS\Contracts\MessagerInterface; | ||
use AnomalyLab\LuminousSMS\Support\Arrays; | ||
use Ofcold\LuminousSMS\Exceptions\HandlerBadException; | ||
use Ofcold\LuminousSMS\Contracts\MessagerInterface; | ||
use Ofcold\LuminousSMS\Support\Arrays; | ||
|
||
/** | ||
* Class Baidu | ||
* | ||
* @link https://anomaly.ink | ||
* @author Anomaly lab, Inc <[email protected]> | ||
* @author Bill Li <[email protected]> | ||
* @package AnomalyLab\LuminousSMS\Handlers\Baidu | ||
* @link https://ofcold.com | ||
* | ||
* @author Ofcold, Inc <[email protected]> | ||
* @author Bill Li <[email protected]> | ||
* | ||
* @package Ofcold\LuminousSMS\Handlers\Baidu | ||
*/ | ||
class Baidu extends Handler | ||
{ | ||
|
@@ -30,19 +32,19 @@ class Baidu extends Handler | |
protected const BCE_AUTH_VERSION = 'bce-auth-v1'; | ||
|
||
protected const DEFAULT_EXPIRATION_IN_SECONDS = 1800; //签名有效期默认1800秒 | ||
|
||
protected const SUCCESS_CODE = 1000; | ||
|
||
/** | ||
* Seed message. | ||
* | ||
* The current drive service providers to implement push information content. | ||
* | ||
* @param \AnomalyLab\LuminousSMS\Contracts\MessagerInterface $messager | ||
* @param \Ofcold\LuminousSMS\Contracts\MessagerInterface $messager | ||
* | ||
* @return array | ||
* | ||
* @throws \AnomalyLab\LuminousSMS\Exceptions\HandlerBadException; | ||
* @throws \Ofcold\LuminousSMS\Exceptions\HandlerBadException; | ||
*/ | ||
public function send(MessagerInterface $messager) : array | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
<?php | ||
|
||
namespace AnomalyLab\LuminousSMS\Handlers; | ||
namespace Ofcold\LuminousSMS\Handlers; | ||
|
||
use AnomalyLab\LuminousSMS\Exceptions\HandlerBadException; | ||
use AnomalyLab\LuminousSMS\Traits\HttpRequest; | ||
use AnomalyLab\LuminousSMS\Contracts\HandlerInterface; | ||
use Ofcold\LuminousSMS\Exceptions\HandlerBadException; | ||
use Ofcold\LuminousSMS\Traits\HttpRequest; | ||
use Ofcold\LuminousSMS\Contracts\HandlerInterface; | ||
|
||
/** | ||
* Class Handler | ||
* | ||
* @link https://anomaly.ink | ||
* @author Anomaly lab, Inc <[email protected]> | ||
* @author Bill Li <[email protected]> | ||
* @package AnomalyLab\LuminousSMS\Handlers\Handler | ||
* @link https://ofcold.com | ||
* | ||
* @author Ofcold, Inc <[email protected]> | ||
* @author Bill Li <[email protected]> | ||
* | ||
* @package Ofcold\LuminousSMS\Handlers\Handler | ||
*/ | ||
abstract class Handler implements HandlerInterface | ||
{ | ||
|
@@ -86,7 +88,7 @@ function($key) use($remove) { | |
* | ||
* @return string | ||
* | ||
* @throws \AnomalyLab\LuminousSMS\Exceptions\HandlerBadException | ||
* @throws \Ofcold\LuminousSMS\Exceptions\HandlerBadException | ||
*/ | ||
public function getMethod(string $method) : string | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
<?php | ||
|
||
namespace AnomalyLab\LuminousSMS\Handlers; | ||
namespace Ofcold\LuminousSMS\Handlers; | ||
|
||
use AnomalyLab\LuminousSMS\Exceptions\HandlerBadException; | ||
use AnomalyLab\LuminousSMS\Contracts\MessagerInterface; | ||
use AnomalyLab\LuminousSMS\Support\Arrays; | ||
use Ofcold\LuminousSMS\Exceptions\HandlerBadException; | ||
use Ofcold\LuminousSMS\Contracts\MessagerInterface; | ||
use Ofcold\LuminousSMS\Support\Arrays; | ||
|
||
/** | ||
* Class Juhe | ||
* | ||
* @link https://anomaly.ink | ||
* @author Anomaly lab, Inc <[email protected]> | ||
* @author Bill Li <[email protected]> | ||
* @package AnomalyLab\LuminousSMS\Handlers\Juhe | ||
* @link https://ofcold.com | ||
* | ||
* @author Ofcold, Inc <[email protected]> | ||
* @author Bill Li <[email protected]> | ||
* | ||
* @package Ofcold\LuminousSMS\Handlers\Juhe | ||
*/ | ||
class Juhe extends Handler | ||
{ | ||
|
@@ -39,11 +41,11 @@ class Juhe extends Handler | |
* | ||
* The current drive service providers to implement push information content. | ||
* | ||
* @param \AnomalyLab\LuminousSMS\Contracts\MessagerInterface $messager | ||
* @param \Ofcold\LuminousSMS\Contracts\MessagerInterface $messager | ||
* | ||
* @return array | ||
* | ||
* @throws \AnomalyLab\LuminousSMS\Exceptions\HandlerBadException; | ||
* @throws \Ofcold\LuminousSMS\Exceptions\HandlerBadException; | ||
*/ | ||
public function send(MessagerInterface $messager) : array | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
<?php | ||
|
||
namespace AnomalyLab\LuminousSMS\Handlers; | ||
namespace Ofcold\LuminousSMS\Handlers; | ||
|
||
use AnomalyLab\LuminousSMS\Exceptions\HandlerBadException; | ||
use AnomalyLab\LuminousSMS\Contracts\MessagerInterface; | ||
use AnomalyLab\LuminousSMS\Support\Arrays; | ||
use AnomalyLab\LuminousSMS\Support\Stringy; | ||
use Ofcold\LuminousSMS\Exceptions\HandlerBadException; | ||
use Ofcold\LuminousSMS\Contracts\MessagerInterface; | ||
use Ofcold\LuminousSMS\Support\Arrays; | ||
use Ofcold\LuminousSMS\Support\Stringy; | ||
|
||
/** | ||
* Class Qcloud | ||
* | ||
* @link https://anomaly.ink | ||
* @author Anomaly lab, Inc <[email protected]> | ||
* @author Bill Li <[email protected]> | ||
* @package AnomalyLab\LuminousSMS\Handlers\Qcloud | ||
* @link https://ofcold.com | ||
* | ||
* @author Ofcold, Inc <[email protected]> | ||
* @author Bill Li <[email protected]> | ||
* | ||
* @package Ofcold\LuminousSMS\Handlers\Qcloud | ||
*/ | ||
class Qcloud extends Handler | ||
{ | ||
|
@@ -40,11 +42,11 @@ class Qcloud extends Handler | |
* | ||
* The current drive service providers to implement push information content. | ||
* | ||
* @param \AnomalyLab\LuminousSMS\Contracts\MessagerInterface $messager | ||
* @param \Ofcold\LuminousSMS\Contracts\MessagerInterface $messager | ||
* | ||
* @return array | ||
* | ||
* @throws \AnomalyLab\LuminousSMS\Exceptions\HandlerBadException; | ||
* @throws \Ofcold\LuminousSMS\Exceptions\HandlerBadException; | ||
*/ | ||
public function send(MessagerInterface $messager) : array | ||
{ | ||
|
Oops, something went wrong.