Commit 13af57bd authored by tongzifang's avatar tongzifang

增加 source_type

parent 48712b41
...@@ -4,5 +4,5 @@ ...@@ -4,5 +4,5 @@
## Getting Started ## Getting Started
flutter pub run build_runner build --delete-conflicting-outputs
...@@ -19,6 +19,7 @@ abstract class UserFeedbackClient { ...@@ -19,6 +19,7 @@ abstract class UserFeedbackClient {
Future<BaseEntity> subFeedBack( Future<BaseEntity> subFeedBack(
@Field('type') int type, @Field('type') int type,
@Field('content') String content, @Field('content') String content,
@Field('source_type') String source_type,
@Field('pictures') List<String> pictures, @Field('pictures') List<String> pictures,
{@Field('source') int source = 2}); {@Field('source') int source = 2});
} }
...@@ -22,6 +22,7 @@ class _UserFeedbackClient implements UserFeedbackClient { ...@@ -22,6 +22,7 @@ class _UserFeedbackClient implements UserFeedbackClient {
Future<BaseEntity> subFeedBack( Future<BaseEntity> subFeedBack(
type, type,
content, content,
source_type,
pictures, { pictures, {
source = 2, source = 2,
}) async { }) async {
...@@ -31,6 +32,7 @@ class _UserFeedbackClient implements UserFeedbackClient { ...@@ -31,6 +32,7 @@ class _UserFeedbackClient implements UserFeedbackClient {
final _data = { final _data = {
'type': type, 'type': type,
'content': content, 'content': content,
'source_type': source_type,
'pictures': pictures, 'pictures': pictures,
'source': source, 'source': source,
}; };
......
...@@ -7,7 +7,6 @@ import 'package:base_data_channel/data/common_up_img_entity.dart'; ...@@ -7,7 +7,6 @@ import 'package:base_data_channel/data/common_up_img_entity.dart';
import 'package:base_data_channel/request/common_client.dart'; import 'package:base_data_channel/request/common_client.dart';
import 'package:base_data_channel/utils/page_utils.dart'; import 'package:base_data_channel/utils/page_utils.dart';
import 'package:base_data_channel/utils/toast_utils.dart'; import 'package:base_data_channel/utils/toast_utils.dart';
import 'package:cached_network_image/cached_network_image.dart';
import 'package:dotted_border/dotted_border.dart'; import 'package:dotted_border/dotted_border.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart'; import 'package:image_picker/image_picker.dart';
...@@ -422,8 +421,12 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> { ...@@ -422,8 +421,12 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
await _uploadImg(element).then((value) => urls.add(value)); await _uploadImg(element).then((value) => urls.add(value));
} }
} }
BaseEntity model = await UserFeedbackClient() BaseEntity model = await UserFeedbackClient().subFeedBack(
.subFeedBack(_feedType, _controller.text, urls); _feedType,
_controller.text,
Platform.operatingSystem,
urls,
);
subStatus = model.status; subStatus = model.status;
if (subStatus == true) { if (subStatus == true) {
// QmToast.toast("提交成功!"); // QmToast.toast("提交成功!");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment