Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
00a35c97
提交
00a35c97
authored
4月 07, 2024
作者:
yueweilu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
删除print
上级
e74fa243
显示空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
0 行增加
和
34 行删除
+0
-34
account.dart
lib/apis/account.dart
+0
-1
global.dart
lib/global.dart
+0
-1
controller.dart
lib/pages/book_pay/controller.dart
+0
-1
controller.dart
lib/pages/user_coin_recharge/controller.dart
+0
-5
controller.dart
lib/pages/user_edit_note/controller.dart
+0
-2
controller.dart
lib/pages/user_order_awaiting/controller.dart
+0
-1
controller.dart
lib/pages/user_order_coin_awaiting/controller.dart
+0
-5
controller.dart
lib/pages/user_order_coin_cancel/controller.dart
+0
-5
controller.dart
lib/pages/user_order_coin_completed/controller.dart
+0
-5
view.dart
lib/pages/user_order_completed/view.dart
+0
-1
view.dart
lib/pages/user_order_evaluate/view.dart
+0
-2
view.dart
lib/pages/user_order_refunded/view.dart
+0
-1
user.dart
lib/store/user.dart
+0
-1
oss.dart
lib/utils/oss.dart
+0
-3
没有找到文件。
lib/apis/account.dart
浏览文件 @
00a35c97
...
...
@@ -35,7 +35,6 @@ abstract class AccountAPI {
showLoading:
true
,
params:
params
);
print
(
result
.
data
);
if
(
result
.
data
is
!
Map
)
return
UserModel
();
return
UserModel
.
fromJson
(
result
.
data
);
}
...
...
lib/global.dart
浏览文件 @
00a35c97
...
...
@@ -24,7 +24,6 @@ class Global {
Get
.
putAsync
<
StorageService
>(()
=>
StorageService
().
init
()),
]).
whenComplete
(()
{
print
(
'初始化****************'
);
// 网络
Get
.
put
<
HttpService
>(
HttpService
());
//配置基本设置
...
...
lib/pages/book_pay/controller.dart
浏览文件 @
00a35c97
...
...
@@ -247,7 +247,6 @@ class BookPayController extends GetxController {
// 支付宝支付
void
requestAliPay
(){
print
(
'================================================================
${payOrderModel.encryptionOrder!}
'
);
tobias
.
pay
(
payOrderModel
.
encryptionOrder
!).
then
((
payResult
){
if
(
payResult
[
'resultStatus'
]
==
'9000'
)
{
requestOrderStatus
();
...
...
lib/pages/user_coin_recharge/controller.dart
浏览文件 @
00a35c97
...
...
@@ -109,11 +109,9 @@ class CoinRechargeController extends GetxController {
Future
<
void
>
initPlatformState
()
async
{
var
result
=
await
FlutterInappPurchase
.
instance
.
initialize
();
print
(
'--------------initPlatformState-------------------------
$result
'
);
_connectionSubscription
=
FlutterInappPurchase
.
connectionUpdated
.
listen
((
connected
)
{
print
(
'connected:
$connected
'
);
});
_purchaseUpdatedSubscription
=
FlutterInappPurchase
.
purchaseUpdated
.
listen
((
productItem
)
{
...
...
@@ -138,14 +136,11 @@ class CoinRechargeController extends GetxController {
.
map
((
coinModel
)
=>
coinModel
.
identifying
!)
.
toList
();
print
(
'-------------productList-------------------
$productList
'
);
List
<
IAPItem
>
items
=
await
FlutterInappPurchase
.
instance
.
getProducts
(
productList
);
for
(
var
item
in
items
)
{
_items
.
add
(
item
);
}
print
(
'-------------_items-------------------
$items
'
);
_items
=
items
;
_purchases
=
[];
// update();
...
...
lib/pages/user_edit_note/controller.dart
浏览文件 @
00a35c97
...
...
@@ -135,7 +135,6 @@ class UserEditNoteController extends GetxController {
startRecording
=
false
;
final
path
=
await
_mRecorder
.
stopRecorder
();
var
duration
=
await
audioPlayer
.
setFilePath
(
path
!);
print
(
'-----duration---------------------
$duration
------'
);
// 添加到数组
addAudio
(
path
,
Tools
.
formatDuration
(
duration
!));
...
...
@@ -181,7 +180,6 @@ class UserEditNoteController extends GetxController {
// return result;
OssTool
tool
=
OssTool
(
'zxts-comment-file'
);
final
response
=
await
tool
.
putObjectFile
(
path
);
print
(
'------response--------------------------
${response.realUri}
'
);
return
response
.
realUri
.
toString
();
}
...
...
lib/pages/user_order_awaiting/controller.dart
浏览文件 @
00a35c97
...
...
@@ -99,7 +99,6 @@ class UserOrderAwaitingController extends GetxController {
// 支付宝支付
void
requestAliPay
(){
print
(
'================================================================
${payOrderModel.encryptionOrder!}
'
);
tobias
.
pay
(
payOrderModel
.
encryptionOrder
!).
then
((
payResult
){
if
(
payResult
[
'resultStatus'
]
==
'9000'
)
{
requestOrderStatus
();
...
...
lib/pages/user_order_coin_awaiting/controller.dart
浏览文件 @
00a35c97
...
...
@@ -72,11 +72,8 @@ class UserOrderCoinAwaitingController extends GetxController {
Future
<
void
>
initPlatformState
()
async
{
var
result
=
await
FlutterInappPurchase
.
instance
.
initialize
();
print
(
'--------------initPlatformState-------------------------
$result
'
);
_connectionSubscription
=
FlutterInappPurchase
.
connectionUpdated
.
listen
((
connected
)
{
print
(
'connected:
$connected
'
);
});
_purchaseUpdatedSubscription
=
FlutterInappPurchase
.
purchaseUpdated
.
listen
((
productItem
)
{
...
...
@@ -136,13 +133,11 @@ class UserOrderCoinAwaitingController extends GetxController {
.
map
((
coinModel
)
=>
coinModel
.
identifying
!)
.
toList
();
print
(
'-------------productList-------------------
$productList
'
);
List
<
IAPItem
>
items
=
await
FlutterInappPurchase
.
instance
.
getProducts
(
productList
);
for
(
var
item
in
items
)
{
_items
.
add
(
item
);
}
print
(
'-------------_items-------------------
$items
'
);
_items
=
items
;
_purchases
=
[];
...
...
lib/pages/user_order_coin_cancel/controller.dart
浏览文件 @
00a35c97
...
...
@@ -72,11 +72,9 @@ class UserOrderCoinCancelController extends GetxController {
Future
<
void
>
initPlatformState
()
async
{
var
result
=
await
FlutterInappPurchase
.
instance
.
initialize
();
print
(
'--------------initPlatformState-------------------------
$result
'
);
_connectionSubscription
=
FlutterInappPurchase
.
connectionUpdated
.
listen
((
connected
)
{
print
(
'connected:
$connected
'
);
});
_purchaseUpdatedSubscription
=
FlutterInappPurchase
.
purchaseUpdated
.
listen
((
productItem
)
{
...
...
@@ -136,14 +134,11 @@ class UserOrderCoinCancelController extends GetxController {
.
map
((
coinModel
)
=>
coinModel
.
identifying
!)
.
toList
();
print
(
'-------------productList-------------------
$productList
'
);
List
<
IAPItem
>
items
=
await
FlutterInappPurchase
.
instance
.
getProducts
(
productList
);
for
(
var
item
in
items
)
{
_items
.
add
(
item
);
}
print
(
'-------------_items-------------------
$items
'
);
_items
=
items
;
_purchases
=
[];
// update();
...
...
lib/pages/user_order_coin_completed/controller.dart
浏览文件 @
00a35c97
...
...
@@ -72,11 +72,9 @@ class UserOrderCoinCompletedController extends GetxController {
Future
<
void
>
initPlatformState
()
async
{
var
result
=
await
FlutterInappPurchase
.
instance
.
initialize
();
print
(
'--------------initPlatformState-------------------------
$result
'
);
_connectionSubscription
=
FlutterInappPurchase
.
connectionUpdated
.
listen
((
connected
)
{
print
(
'connected:
$connected
'
);
});
_purchaseUpdatedSubscription
=
FlutterInappPurchase
.
purchaseUpdated
.
listen
((
productItem
)
{
...
...
@@ -137,14 +135,11 @@ class UserOrderCoinCompletedController extends GetxController {
.
map
((
coinModel
)
=>
coinModel
.
identifying
!)
.
toList
();
print
(
'-------------productList-------------------
$productList
'
);
List
<
IAPItem
>
items
=
await
FlutterInappPurchase
.
instance
.
getProducts
(
productList
);
for
(
var
item
in
items
)
{
_items
.
add
(
item
);
}
print
(
'-------------_items-------------------
$items
'
);
_items
=
items
;
_purchases
=
[];
// update();
...
...
lib/pages/user_order_completed/view.dart
浏览文件 @
00a35c97
...
...
@@ -142,7 +142,6 @@ class _UserOrderCompletedState extends State<UserOrderCompletedPage> {
integralPrice:
controller
.
model
.
integralPrice
.
toString
(),);
},
).
then
((
value
)
{
print
(
'点击了应付款后面'
);
});
},
child:
Row
(
...
...
lib/pages/user_order_evaluate/view.dart
浏览文件 @
00a35c97
...
...
@@ -76,7 +76,6 @@ class _UserOrderEvaluatePageState extends State<UserOrderEvaluatePage> with Auto
isEnabled:
controller
.
enable
,
onPressed:
()
async
{
controller
.
focusNodes
[
_index
]!.
unfocus
();
print
(
jsonEncode
(
orderEvaluates
));
Future
<
bool
>
result
=
controller
.
UpOrderEvaluate
(
jsonEncode
(
orderEvaluates
));
if
(
await
result
){
context
.
pop
(
true
);
...
...
@@ -203,7 +202,6 @@ class _UserOrderEvaluatePageState extends State<UserOrderEvaluatePage> with Auto
onRating:
(
double
)
{
orderEvaluates
[
indexToUpdate
].
rating
=
double
;
myController
.
setCanClick
(
double
:
double
);
print
(
double
);
},
),
),
...
...
lib/pages/user_order_refunded/view.dart
浏览文件 @
00a35c97
...
...
@@ -139,7 +139,6 @@ class _UserOrderRefundedState extends State<UserOrderRefundedPage> {
integralPrice:
controller
.
model
.
integralPrice
.
toString
(),);
},
).
then
((
value
)
{
print
(
'点击了应付款后面'
);
});
},
...
...
lib/store/user.dart
浏览文件 @
00a35c97
...
...
@@ -72,7 +72,6 @@ class UserStore extends GetxController{
Future
<
void
>
profile
()
async
{
print
(
'toknen----------------------: '
+
_token
);
if
(!
hasToken
)
return
;
_isLogin
=
true
;
update
();
...
...
lib/utils/oss.dart
浏览文件 @
00a35c97
...
...
@@ -28,8 +28,6 @@ class OssTool {
// 本地文件上传
Future
<
Response
<
dynamic
>>
putObjectFile
(
String
filePath
)
async
{
print
(
'------------------222222222222222222222--------------
$filePath
'
);
print
(
'------------------222222222222222222222--------------'
);
List
<
String
>
parts
=
filePath
.
split
(
'/'
);
String
fileName
=
parts
.
last
;
final
String
path
=
'
${DateTime.now().year}
/
${DateTime.now().month.toString().padLeft(2,'0')}
/
${DateTime.now().day.toString().padLeft(2,'0')}
'
;
...
...
@@ -37,7 +35,6 @@ class OssTool {
filePath
,
fileKey:
'
$path
/
$fileName
'
);
print
(
'99999999999-------------
${resp.realUri}
---
${resp.extra}
--
${resp.data}
'
);
return
resp
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论