Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qmsd-flutter-user-feedback
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PublicSource
qmsd-flutter-user-feedback
Commits
828b184d
Commit
828b184d
authored
Jun 09, 2023
by
tongzifang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix base_data_channel
parent
73b997ef
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
8 deletions
+16
-8
README.md
README.md
+2
-1
user_feedback_client.dart
lib/request/user_feedback_client.dart
+2
-1
user_feedback_client.g.dart
lib/request/user_feedback_client.g.dart
+5
-1
user_feedback_page.dart
lib/user_feedback_page.dart
+7
-5
No files found.
README.md
View file @
828b184d
...
...
@@ -4,5 +4,6 @@
## Getting Started
构建retrofit文件,最好先删除api_client.g.dart
flutter pub run build_runner build --delete-conflicting-outputs
lib/request/user_feedback_client.dart
View file @
828b184d
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
});
}
lib/request/user_feedback_client.g.dart
View file @
828b184d
...
...
@@ -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
...
...
lib/user_feedback_page.dart
View file @
828b184d
...
...
@@ -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("提交成功!");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment