罗明文
2024-06-16 9673bcd57c6100ad9fdfbee728ef078104511fc1
save
3个文件已修改
2个文件已添加
25 ■■■■ 已修改文件
.idea/.name 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.idea/runConfigurations.xml 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/dollearn/student/network/Apis.kt 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/dollearn/student/ui/home/DailyFragment.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/dollearn/student/ui/home/ListenActivity.kt 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.idea/.name
New file
@@ -0,0 +1 @@
DophinEnglish
.idea/runConfigurations.xml
New file
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="RunConfigurationProducerService">
    <option name="ignoredProducers">
      <set>
        <option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
      </set>
    </option>
  </component>
</project>
app/src/main/java/com/dollearn/student/network/Apis.kt
@@ -3,9 +3,9 @@
object Apis {
    private var isTest = true
    private const val TEST_URL = "http://192.168.110.237:9000/" //周帅内网
//    private const val TEST_URL = "http://192.168.110.237:9000/" //周帅内网
//    private const val TEST_URL = "http://221.182.45.100:56666/" //内网穿透
//    private const val TEST_URL = "http://8.137.22.229:56666/" //外网
    private const val TEST_URL = "http://1.95.15.237:9000/" //外网
    private const val LINE_URL = "http://8.137.22.229:56666/" //正式服
    val BASE_URL = if (isTest) TEST_URL else LINE_URL
app/src/main/java/com/dollearn/student/ui/home/DailyFragment.kt
@@ -34,7 +34,7 @@
        cl_1.clickDelay {
            showDialog("加载题目...")
            HttpManager.listenSelectPicture(season, week, day).requestByF(this){_,data->
                startActivityForResult<ListenActivity>(1,"data" to data)
                startActivityForResult<ListenActivity>(1,"data" to data,"day" to day,"week" to week)
            }
        }
    }
app/src/main/java/com/dollearn/student/ui/home/ListenActivity.kt
@@ -21,6 +21,12 @@
class ListenActivity:TransparentStatusBarActivity() {
    override fun setContentView() = R.layout.activity_listen
    private val day by lazy {
        intent.getIntExtra("day",0)
    }
    private val week by lazy {
        intent.getIntExtra("week",0)
    }
    val data by lazy { intent.getParcelableExtra<SubjectBean>("data") }
    private val fragments    = arrayListOf<Fragment>()
@@ -88,7 +94,7 @@
        tipDialog.arguments = bundleOf("msg" to "未完成全部答题,确认退出吗?")
        tipDialog.setCallback(object :TipDialog.OnClickCallback{
            override fun onOk() {
                HttpManager.exitLearning()
                HttpManager.exitLearning(day,week,1,data?.data?.id?:"",)
            }
            override fun onCancel() {