修复 余额判断
This commit is contained in:
parent
e3eeb82696
commit
f50b49ba05
@ -425,14 +425,14 @@ public function changeStatus(
|
||||
return false;
|
||||
}
|
||||
|
||||
if (! $this->isCycle() && $user->hasBalance('0.5')) {
|
||||
if (! $this->isCycle() && ! $user->hasBalance('0.5')) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if ($status === 'running') {
|
||||
return $this->run();
|
||||
} elseif ($status === 'suspended' && ! $this->isCycle()) {
|
||||
} elseif (($status === 'suspended' || $status === 'suspend') && ! $this->isCycle()) {
|
||||
return $this->suspend();
|
||||
} elseif ($status === 'stopped') {
|
||||
return $this->stop();
|
||||
|
Loading…
Reference in New Issue
Block a user