|
@@ -170,12 +170,16 @@ class Notify extends Api
|
|
|
|
|
|
|
|
|
$input = Dever::input();
|
|
|
- $test = file_get_contents("php://input");
|
|
|
- Dever::log($test, 'notify_test');
|
|
|
- Dever::log($input, 'notify_test2');
|
|
|
if (!isset($input['t'])) {
|
|
|
$this->error('error');
|
|
|
}
|
|
|
+ $file = file_get_contents("php://input");
|
|
|
+ if ($file) {
|
|
|
+ $file = json_decode($file, true);
|
|
|
+ if ($file) {
|
|
|
+ $input = array_merge($file, $input);
|
|
|
+ }
|
|
|
+ }
|
|
|
$temp = explode('-', $input['t']);
|
|
|
$connect_id = $temp[0];
|
|
|
$api_id = $temp[1];
|