|
@@ -255,7 +255,7 @@ class Api
|
|
|
$this->system_source = $this->getParam($param, 'system_source');
|
|
|
$this->account_id = $this->getParam($param, 'account_id');
|
|
|
|
|
|
- if (!$this->account_id && !$this->channel_id && !$this->system_source) {
|
|
|
+ if (!$this->account_id || (!$this->channel_id && !$this->system_source)) {
|
|
|
Dever::alert('没有账户信息');
|
|
|
}
|
|
|
}
|
|
@@ -281,7 +281,7 @@ class Api
|
|
|
private function handle()
|
|
|
{
|
|
|
$pay = false;
|
|
|
- if ($this->account_id > 0) {
|
|
|
+ if ($this->account_id) {
|
|
|
$pay = Dever::db('pay/account')->one($this->account_id);
|
|
|
} elseif ($this->channel_id && $this->system_source) {
|
|
|
$pay = Dever::db('pay/account')->one(array('channel_id' => $this->channel_id, 'system_source' => $this->system_source));
|