request->get('mall_id'); $type = $this->request->get('type'); if (empty($msg)) { # 如果没有数据,直接返回失败 echo "数据有误";exit; } if (empty($mall_id)) { Yii::error('银典支付缺少mall-id'); die; } $service = new NotifyService(['mall_id' => $mall_id]); $service->check($msg, $type); echo "{\"respCode\" : \"0000\", \"respMsg\" : \"成功\"}"; } }