public function actionAsend() { if (isset($_POST['ticker'])) { $ticker = $_POST['ticker']; $title = $_POST['title']; $text = $_POST['text']; $para = $_POST['para']; $json['title'] = $title; $json['content'] = $text; $json['msgType '] = 2; $json['value'] = $para; $json = CJSON::encode($json); $demo = new Demo("", ""); $demo->sendAndroidBroadcast($ticker, $title, $text, $json); } }