docs(course): set production backend to shopneu.hmos.site and clean draft notes
Build Android app / Build (push) Has been cancelled
Build iOS app / Build (push) Has been cancelled
Template Cleanup / Template Cleanup (push) Has been cancelled

This commit is contained in:
xiaobai committed 2026-03-04 20:32:35 +08:00
1 parent dc2e32c437
commit 24945ee3fe
2 files changed
+20 -11

No files matched your search

@@ -139,18 +139,19 @@ import androidx.compose.foundation.lazy.staggeredgrid.items as staggeredItems
## 六、联调与稳定性(第5段:15分钟)
### Step 10:切后端地址
- 模拟器:`http://10.0.2.2:8080` 或 `/api`
- 真机:`http://192.168.x.x:8080` 或 `/api`
### Step 10:切后端地址(课程统一)
- 线上服务:`https://shopneu.hmos.site`
- 推荐接口前缀:`https://shopneu.hmos.site/api`
### Step 11:Android HTTP 放行(开发环境)
`AndroidManifest.xml`:
Android 端示例:
```xml
android:usesCleartextTraffic="true"
```kotlin
ProductApi(baseUrl = "https://shopneu.hmos.site/api", useMock = false)
```
### Step 12:图片兜底
> 使用 HTTPS 时,不需要 `usesCleartextTraffic`。
### Step 11:图片兜底
- 网络图加载中:显示本地默认图
- 加载失败:显示本地默认图