|
@@ -33,6 +33,8 @@ class Notify extends Api
|
|
|
} else {
|
|
|
$this->error('error');
|
|
|
}
|
|
|
+ $this->connect = Dever::db('info', 'connect')->find($connect_id);
|
|
|
+ $this->info = Dever::db('api', 'connect')->find($api_id);
|
|
|
|
|
|
unset($input['s']);
|
|
|
unset($input['l']);
|
|
@@ -61,8 +63,6 @@ class Notify extends Api
|
|
|
private function load($input, $connect_id, $api_id, $order_id)
|
|
|
{
|
|
|
Dever::log($input, 'notify');
|
|
|
- $this->connect = Dever::db('info', 'connect')->find($connect_id);
|
|
|
- $this->info = Dever::db('api', 'connect')->find($api_id);
|
|
|
if (is_array($order_id)) {
|
|
|
$order = $order_id;
|
|
|
} else {
|
|
@@ -177,6 +177,8 @@ class Notify extends Api
|
|
|
$connect_id = $temp[0];
|
|
|
$api_id = $temp[1];
|
|
|
$order_key = $temp[2];
|
|
|
+ $this->connect = Dever::db('info', 'connect')->find($connect_id);
|
|
|
+ $this->info = Dever::db('api', 'connect')->find($api_id);
|
|
|
if (!isset($input[$order_key])) {
|
|
|
$this->error('error');
|
|
|
}
|