优化:发送通道企微应用消息增加限制:@all指定成员(避免82001错误)

This commit is contained in:
pppscn 2022-07-28 14:14:52 +08:00
parent 878a6acefd
commit 2ca88ae495
2 changed files with 4 additions and 2 deletions

View File

@ -251,6 +251,9 @@ class WeworkAgentFragment : BaseFragment<FragmentSendersWeworkAgentBinding?>(),
val atAll = binding!!.sbAtAll.isChecked
val toUser = binding!!.etToUser.text.toString().trim()
if (!atAll && TextUtils.isEmpty(toUser)) {
throw Exception(getString(R.string.invalid_at_mobiles))
}
val proxyType: Proxy.Type = when (binding!!.rgProxyType.checkedRadioButtonId) {
R.id.rb_proxyHttp -> Proxy.Type.HTTP

View File

@ -149,8 +149,7 @@
style="@style/senderBarStyle"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:visibility="gone">
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"