Skip to content

Commit

Permalink
测试版本
Browse files Browse the repository at this point in the history
  • Loading branch information
ykxiao committed Jun 20, 2020
1 parent 84054ef commit e6d2078
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
11 changes: 0 additions & 11 deletions src/CloudMonth.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,4 @@ public function text($content = ''){
->setTextMessage($content)
->send();
}

/**
* @param array $mobiles
* @param bool $atAll
* @return $this
*/
public function at($mobiles = [], $atAll = false){
$this->cloudService
->setAt($mobiles,$atAll);
return $this;
}
}
17 changes: 1 addition & 16 deletions src/CloudService.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ public function __construct($config, SendClient $client = null)
*/
protected function createClient($config)
{
$client = new HttpClient($config);
return $client;
return new HttpClient($config);
}

/**
Expand All @@ -69,7 +68,6 @@ protected function createClient($config)
public function setTextMessage($content)
{
$this->message = new Contents($content);
$this->message->sendAt($this->mobiles, $this->atAll);
return $this;
}

Expand All @@ -83,17 +81,4 @@ public function send()
}
return $this->client->send($this->message->getBody());
}

/**
* @param array $mobiles
* @param bool $atAll
*/
public function setAt($mobiles = [], $atAll = false)
{
$this->mobiles = $mobiles;
$this->atAll = $atAll;
if ($this->message) {
$this->message->sendAt($mobiles, $atAll);
}
}
}

0 comments on commit e6d2078

Please sign in to comment.