Skip to content

Commit

Permalink
🔄 Push
Browse files Browse the repository at this point in the history
  • Loading branch information
Eval committed Sep 10, 2018
1 parent 9757956 commit 41462bd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/kaleido/http/Capture.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Capture extends Worker
public $apiServer;
public $appId;
public $appKey;
public $logType;
public $capType;
public $masterKey;

/**
Expand All @@ -36,9 +36,9 @@ public function __construct($activity = null, $objectId = null) {
* @throws \ErrorException
*/
private function handle($activity = null, $objectId = null) {
switch ($this->logType) {
case $this->logType === 'leancloud' && null === $activity:
$this->unpackItem($this->logType);
switch ($this->capType) {
case $this->capType === 'leancloud' && null === $activity:
$this->unpackItem($this->capType);
$lean = new LeanCloud();
$lean->setClass($this);
$lean::initialize();
Expand All @@ -49,7 +49,7 @@ private function handle($activity = null, $objectId = null) {
$this->setObjectId($init);
$this->setTiming('Save-Timing');
break;
case $this->logType === 'leancloud' && null !== $activity:
case $this->capType === 'leancloud' && null !== $activity:
$this->inActivity($activity);
$this->unpackItem($this->logType);
$lean = new LeanCloud();
Expand Down

0 comments on commit 41462bd

Please sign in to comment.