|
@@ -16,6 +16,18 @@ class Notify extends Api
|
|
|
list($connect_id, $api_id, $order_id) = explode('|', $s);
|
|
|
unset($input['s']);
|
|
|
unset($input['l']);
|
|
|
+ if (!$input) {
|
|
|
+ $input = file_get_contents("php://input");
|
|
|
+ if ($input) {
|
|
|
+ $input = json_decode($input, true);
|
|
|
+ if (isset($input['s'])) {
|
|
|
+ unset($input['s']);
|
|
|
+ }
|
|
|
+ if (isset($input['l'])) {
|
|
|
+ unset($input['l']);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
$this->load($input, $connect_id, $api_id, $order_id);
|
|
|
}
|
|
|
|
|
@@ -74,8 +86,9 @@ class Notify extends Api
|
|
|
$update['channel_callback'] = json_encode($input, JSON_UNESCAPED_UNICODE);
|
|
|
$update['channel_callback_date'] = time();
|
|
|
Dever::load('order', 'seller')->notify($order, $msg, $update);
|
|
|
+ echo $this->info['notify_success'];die;
|
|
|
}
|
|
|
- echo $this->info['notify_success'];die;
|
|
|
+ echo 'error';die;
|
|
|
}
|
|
|
|
|
|
private function error($msg)
|