|
@@ -590,6 +590,13 @@ exit;
|
|
|
public function callback() {
|
|
|
$input = file_get_contents("php://input"); // 主题信息
|
|
|
$input = json_decode($input,true);
|
|
|
+
|
|
|
+ $callback_data = [
|
|
|
+ 'time' => date('Y-m-d H:i:s'),
|
|
|
+ 'data' => $input,
|
|
|
+ ];
|
|
|
+ Db::name('callback')->insertGetId($callback_data);
|
|
|
+
|
|
|
$CallbackCommand = $input["CallbackCommand"];
|
|
|
switch ($CallbackCommand) {
|
|
|
case 'State.StateChange': // 用户在线状态变更
|