public function actionAddressLoad($id)
{
$model = Address::findOne(['id' => $id, 'user_id' => Yii::$app->user->id]);
if (!$model) {
throw new NotFoundHttpException('未找到该地址!');
}
$output = ['consignee' => $model->consignee, 'gender' => $model->gender, 'cellphone' => $model->cellphone, 'building_id' => $model->building_id, 'room' => $model->room];
Yii::$app->response->format = Response::FORMAT_JSON;
return $output;
}