From f2e891eecfac25bf6aed38c8eadfdf05704b16b6 Mon Sep 17 00:00:00 2001
From: 无故事王国 <841720330@qq.com>
Date: 星期四, 20 六月 2024 18:48:39 +0800
Subject: [PATCH] fix

---
 DolphinEnglishLearnStudent/Services/Services.swift |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/DolphinEnglishLearnStudent/Services/Services.swift b/DolphinEnglishLearnStudent/Services/Services.swift
index 8f46a4a..e698ce4 100644
--- a/DolphinEnglishLearnStudent/Services/Services.swift
+++ b/DolphinEnglishLearnStudent/Services/Services.swift
@@ -322,7 +322,7 @@
 								return NetworkRequest.request(params: params, method: .post,encoding: JSONEncoding.default, progress: true)
 				}
 
-				class func exitLearning(type:Int,week:Int,day:Int,teamIds:[String],topicIds:[String])->Observable<BaseResponse<SimpleModel>>{
+				class func exitLearning(type:Int,week:Int,day:Int,teamIds:[String],topicIds:[String],answerNumber:Int,correctNumber:Int,studyTime:Int)->Observable<BaseResponse<SimpleModel>>{
 								let params = ParamsAppender.build(url: All_Url)
 								params.interface(url: "/study/base/study/exitLearning")
 												.append(key: "week", value: week)
@@ -330,6 +330,9 @@
 												.append(key: "teamIds", value: teamIds.joined(separator: ","))
 												.append(key: "topicIds", value: topicIds.joined(separator: ","))
 												.append(key: "type", value: type)
+												.append(key: "answerNumber", value: answerNumber)
+												.append(key: "correctNumber", value: correctNumber)
+												.append(key: "studyTime", value: studyTime)
 								return NetworkRequest.request(params: params, method: .post,encoding: JSONEncoding.default, progress: true)
 				}
 
@@ -340,6 +343,18 @@
 												.append(key: "recipientId", value: recipientId)
 								return NetworkRequest.request(params: params, method: .get, progress: true)
 				}
+
+				class func onlineDuration()->Observable<BaseResponse<Int>>{
+								let params = ParamsAppender.build(url: All_Url)
+								params.interface(url: "/study/base/study/onlineDuration")
+								return NetworkRequest.request(params: params, method: .get, progress: false)
+				}
+
+				class func giveIntegral()->Observable<BaseResponse<SimpleModel>>{
+								let params = ParamsAppender.build(url: All_Url)
+								params.interface(url: "/study/base/study/giveIntegral")
+								return NetworkRequest.request(params: params, method: .get, progress: false)
+				}
 }
 
 extension Services{

--
Gitblit v1.7.1