更新
This commit is contained in:
Generated
+2
-2
@@ -4,10 +4,10 @@
|
||||
<selectionStates>
|
||||
<SelectionState runConfigName="app">
|
||||
<option name="selectionMode" value="DROPDOWN" />
|
||||
<DropdownSelection timestamp="2026-03-25T08:24:18.087919900Z">
|
||||
<DropdownSelection timestamp="2026-03-26T12:09:09.946169900Z">
|
||||
<Target type="DEFAULT_BOOT">
|
||||
<handle>
|
||||
<DeviceId pluginId="Default" identifier="serial=emulator-5554;connection=1f9ceb70" />
|
||||
<DeviceId pluginId="PhysicalDevice" identifier="serial=lvzdxotknne6u4nv" />
|
||||
</handle>
|
||||
</Target>
|
||||
</DropdownSelection>
|
||||
|
||||
Generated
+6
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
|
||||
首次进入 App 会让你填写:
|
||||
|
||||
- `backendUrl`:例如 `http://192.168.1.10:7788`
|
||||
- `backendUrl`:例如 `https://yzsms.yunzer.cn`
|
||||
- `apiKey`:后端 `.env` 里的 `SMS_GATEWAY_API_KEY`
|
||||
- (不再需要 `deviceId`:由后端根据 `apiKey` 自动归属任务/短信)
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -2,6 +2,7 @@
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.RECEIVE_SMS" />
|
||||
<uses-permission android:name="android.permission.READ_SMS" />
|
||||
<uses-permission android:name="android.permission.SEND_SMS" />
|
||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.yunzer.sms
|
||||
|
||||
import android.content.BroadcastReceiver
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
|
||||
/**
|
||||
* 用于接收 SMS_DELIVER(默认短信应用角色相关)。
|
||||
* 这里复用现有 SmsReceiver 的处理逻辑。
|
||||
*/
|
||||
class SmsDeliverReceiver : BroadcastReceiver() {
|
||||
private val delegate = SmsReceiver()
|
||||
|
||||
override fun onReceive(context: Context, intent: Intent) {
|
||||
delegate.onReceive(context, intent)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user