Commit 828b184d authored by tongzifang's avatar tongzifang

fix base_data_channel

parent 73b997ef
......@@ -4,5 +4,6 @@
## Getting Started
构建retrofit文件,最好先删除api_client.g.dart
flutter pub run build_runner build --delete-conflicting-outputs
import 'dart:io';
import 'package:base_data_channel/http/basedio.dart';
import 'package:base_data_channel/data/base_entity.dart';
......@@ -21,5 +20,7 @@ abstract class UserFeedbackClient {
@Field('content') String content,
@Field('source_type') String source_type,
@Field('pictures') List<String> pictures,
@Field('shop_id') String shop_id,
@Field('shop_name') String shop_name,
{@Field('source') int source = 2});
}
......@@ -23,7 +23,9 @@ class _UserFeedbackClient implements UserFeedbackClient {
type,
content,
source_type,
pictures, {
pictures,
shop_id,
shop_name, {
source = 2,
}) async {
const _extra = <String, dynamic>{};
......@@ -34,6 +36,8 @@ class _UserFeedbackClient implements UserFeedbackClient {
'content': content,
'source_type': source_type,
'pictures': pictures,
'shop_id': shop_id,
'shop_name': shop_name,
'source': source,
};
final _result = await _dio
......
......@@ -18,6 +18,7 @@ import 'package:flutter_boost/flutter_boost.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:keyboard_dismisser/keyboard_dismisser.dart';
import 'package:insta_image_viewer/insta_image_viewer.dart';
import 'package:sp_util/sp_util.dart';
class UserFeedBackPage extends StatefulWidget {
int? fromShot;
......@@ -422,11 +423,12 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
}
}
BaseEntity model = await UserFeedbackClient().subFeedBack(
_feedType,
_controller.text,
Platform.operatingSystem,
urls,
);
_feedType,
_controller.text,
Platform.operatingSystem,
urls,
SpUtil.getString('storeId') ?? '',
SpUtil.getString('storeName') ?? '');
subStatus = model.status;
if (subStatus == true) {
// 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