refactor(network): 重构网络请求配置以支持动态环境切换
- 将布局文件中的 Button 替换为 AppCompatButton 组件 - 更新环境切换对话框中的 URL 映射关系 - 添加 LOCAL_BASE_URL 和修改 TEST_BASE_URL 的常量定义 - 启用并实现环境切换功能的时间点击事件处理 - 在 API 接口定义中使用 @Url 注解实现动态 URL 设置 - 创建 DynamicBaseUrlInterceptor 拦截器实现实时域名替换 - 更新依赖注入模块以使用新的拦截器和全局基础 URL - 修改仓库层调用以使用具名参数传递
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<Button
|
||||
<androidx.appcompat.widget.AppCompatButton
|
||||
android:id="@+id/btnCancel"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
@@ -90,7 +90,7 @@
|
||||
android:textColor="#ff141428"
|
||||
android:textSize="28sp" />
|
||||
|
||||
<Button
|
||||
<androidx.appcompat.widget.AppCompatButton
|
||||
android:id="@+id/btnConfirm"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
|
||||
Reference in New Issue
Block a user