renderPartial('demo'); } public function actionIndex() { return $this->renderPartial('index'); } //新客户 shish 2019.12.29 public function actionVisit() { $data = json_encode(array( 'type' => 'msg', 'msg' => 'aaaa', )); $id = 'merchantConsole_' . $this->merchantId; $online = Gateway::getClientIdByUid($id); if ($online) { //直接发送 Gateway::sendToUid($id, json_encode($data)); } else { //保存 } } //新订单 shish 2019.12.29 public function actionOrder() { $data = json_encode(array( 'type' => 'msg', 'msg' => 'aaaa', )); $id = 'merchantConsole_' . $this->merchantId; $online = Gateway::getClientIdByUid($id); if ($online) { //直接发送 Gateway::sendToUid($id, json_encode($data)); } else { //保存 } } }