1,receiverUid改为int类型

2,安卓推送放开
This commit is contained in:
Daisy 2024-01-16 10:11:40 +08:00
parent 3a2596e14f
commit ab4a3c3380
2 changed files with 3 additions and 5 deletions

View File

@ -150,10 +150,8 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver, BaseWidget {
_aliyunPush.getDeviceId().then((deviceId) async { _aliyunPush.getDeviceId().then((deviceId) async {
final data = await Storage.getString('userLoginData'); final data = await Storage.getString('userLoginData');
if (data!.isNotEmpty) { if (data!.isNotEmpty) {
if (Platform.isIOS) { XSAliyunPushProvider()
XSAliyunPushProvider() .pushBindDeviceID(deviceId, Platform.isAndroid ? 10 : 20);
.pushBindDeviceID(deviceId, Platform.isAndroid ? 10 : 20);
}
} }
}); });

View File

@ -27,7 +27,7 @@ class AuthorizedAdminSendEntity {
} }
class Data { class Data {
String? receiverUid; int? receiverUid;
ReceiverUser? receiverUser; ReceiverUser? receiverUser;
int? keyId; int? keyId;