public static object feedback(FeedbackType type, string content, string name = "", string contact = "") { return(new ThunkAction <AppState>((dispatcher, getState) => { return ReportApi.Feedback(type, content, name, contact) .Then(() => { dispatcher.dispatch(new MainNavigatorPopAction()); CustomDialogUtils.showToast("反馈成功", Icons.sentiment_satisfied); dispatcher.dispatch(new FeedbackSuccessAction()); }) .Catch(error => { CustomDialogUtils.showToast("发送失败", Icons.sentiment_dissatisfied); dispatcher.dispatch(new FeedbackFailureAction()); }); })); }