mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: type & grpc message (#842)
* opt: grpc type * opt: grpc message * opt: http type
This commit is contained in:
committed by
GitHub
parent
7b4f08bb05
commit
024e74115e
@@ -62,7 +62,7 @@ class RequestUtils {
|
||||
: MsgType.EN_MSG_TYPE_SHARE_V2,
|
||||
);
|
||||
|
||||
if (contentRes['status']) {
|
||||
if (contentRes.isSuccess) {
|
||||
if (message?.isNotEmpty == true) {
|
||||
var msgRes = await MsgHttp.sendMsg(
|
||||
senderUid: ownerMid,
|
||||
@@ -81,7 +81,7 @@ class RequestUtils {
|
||||
SmartDialog.showToast('分享成功');
|
||||
}
|
||||
} else {
|
||||
SmartDialog.showToast('分享失败: ${contentRes['msg']}');
|
||||
SmartDialog.showToast('分享失败: ${(contentRes as Error).errMsg}');
|
||||
}
|
||||
SmartDialog.dismiss();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user