# deviceinfo-android **Repository Path**: EEPPEE_admin/deviceinfo-android ## Basic Information - **Project Name**: deviceinfo-android - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-07 - **Last Updated**: 2025-07-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 设备信息 ## 后端部署 - 修改mysql连接字符串 ```go // 改成你自己的, 如username: root, password: 123456, 数据库: device_db (提前建库) dsn := "root:123456@tcp(localhost:3306)/device_db?charset=utf8mb4&parseTime=True&loc=Local" ``` - 直接`go run main.go`即可 - 使用cpolar做内网穿透(https://www.cpolar.com/) ```bash cpolar http 8080 # 输出如下 Version 3.12/3.18 Web Interface 127.0.0.1:4042 Forwarding http://69876df4.r6.cpolar.top -> http://localhost:8080 Forwarding https://69876df4.r6.cpolar.top -> http://localhost:8080 # Conn 0 Avg Conn Time 0.00ms ``` # 安卓端 - jdk21 + android sdk 35 + 真机(android 13) - 修改[BASE_URL](android\deviceinfo\app\src\main\java\com\example\deviceinfo\data\network\NetworkConfig.kt)为cpolar的url, 或者自己部署的后端url,只支持https,没有写http的config xml # 截图