mirror of
https://github.com/pppscn/SmsForwarder
synced 2024-11-04 06:00:11 +00:00
新增:微信小程序客户端的太阳码
This commit is contained in:
parent
d46d8e9c27
commit
6634b5aedf
@ -13,6 +13,7 @@ import com.idormy.sms.forwarder.utils.CommonUtils.Companion.gotoProtocol
|
||||
import com.idormy.sms.forwarder.utils.CommonUtils.Companion.previewMarkdown
|
||||
import com.idormy.sms.forwarder.utils.CommonUtils.Companion.previewPicture
|
||||
import com.idormy.sms.forwarder.utils.HistoryUtils
|
||||
import com.idormy.sms.forwarder.utils.HttpServerUtils
|
||||
import com.idormy.sms.forwarder.utils.XToastUtils
|
||||
import com.idormy.sms.forwarder.utils.sdkinit.XUpdateInit
|
||||
import com.xuexiang.xaop.annotation.SingleClick
|
||||
@ -106,6 +107,7 @@ class AboutFragment : BaseFragment<FragmentAboutBinding?>(), SuperTextView.OnSup
|
||||
AgentWebActivity.goWeb(context, getString(R.string.url_add_qq_group_5))
|
||||
}
|
||||
|
||||
binding!!.menuWechatMiniprogram.setOnSuperTextViewClickListener(this)
|
||||
binding!!.menuDonation.setOnSuperTextViewClickListener(this)
|
||||
binding!!.menuWecomGroup.setOnSuperTextViewClickListener(this)
|
||||
binding!!.menuDingtalkGroup.setOnSuperTextViewClickListener(this)
|
||||
@ -120,6 +122,13 @@ class AboutFragment : BaseFragment<FragmentAboutBinding?>(), SuperTextView.OnSup
|
||||
R.id.menu_donation -> {
|
||||
previewMarkdown(this, getString(R.string.about_item_donation_link), getString(R.string.url_donation_link), false)
|
||||
}
|
||||
R.id.menu_wechat_miniprogram -> {
|
||||
if (HttpServerUtils.safetyMeasures != 3) {
|
||||
XToastUtils.error("微信小程序只支持SM4加密传输!请前往主动控制·服务端修改安全措施!")
|
||||
//return
|
||||
}
|
||||
previewPicture(this, getString(R.string.url_wechat_miniprogram), null)
|
||||
}
|
||||
R.id.menu_wecom_group -> {
|
||||
previewPicture(this, getString(R.string.url_wework_group), null)
|
||||
}
|
||||
|
@ -166,6 +166,7 @@ class ClientFragment : BaseFragment<FragmentClientBinding?>(), View.OnClickListe
|
||||
}
|
||||
})
|
||||
|
||||
binding!!.btnWechatMiniprogram.setOnClickListener(this)
|
||||
binding!!.btnServerHistory.setOnClickListener(this)
|
||||
binding!!.btnServerTest.setOnClickListener(this)
|
||||
}
|
||||
@ -173,6 +174,13 @@ class ClientFragment : BaseFragment<FragmentClientBinding?>(), View.OnClickListe
|
||||
@SingleClick
|
||||
override fun onClick(v: View) {
|
||||
when (v.id) {
|
||||
R.id.btn_wechat_miniprogram -> {
|
||||
if (HttpServerUtils.safetyMeasures != 3) {
|
||||
XToastUtils.error("微信小程序只支持SM4加密传输!请前往主动控制·服务端修改安全措施!")
|
||||
return
|
||||
}
|
||||
CommonUtils.previewPicture(this, getString(R.string.url_wechat_miniprogram), null)
|
||||
}
|
||||
R.id.btn_server_history -> {
|
||||
if (serverHistory.isEmpty()) {
|
||||
XToastUtils.warning(getString(R.string.no_server_history))
|
||||
|
@ -95,6 +95,11 @@
|
||||
|
||||
</com.xuexiang.xui.widget.textview.supertextview.SuperTextView>
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperTextView
|
||||
android:id="@+id/menu_wechat_miniprogram"
|
||||
style="@style/InfoItem.About"
|
||||
app:sLeftTextString="@string/about_item_wechat_miniprogram" />
|
||||
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperTextView
|
||||
android:id="@+id/menu_wecom_group"
|
||||
|
@ -174,7 +174,7 @@
|
||||
|
||||
<com.xuexiang.xui.widget.button.ButtonView
|
||||
android:id="@+id/btn_server_test"
|
||||
style="@style/ButtonView.Green"
|
||||
style="@style/ButtonView.Blue"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="15dp"
|
||||
@ -183,6 +183,17 @@
|
||||
android:padding="5dp"
|
||||
android:text="@string/server_test" />
|
||||
|
||||
<com.xuexiang.xui.widget.button.ButtonView
|
||||
android:id="@+id/btn_wechat_miniprogram"
|
||||
style="@style/ButtonView.Green"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="15dp"
|
||||
android:gravity="center"
|
||||
android:minWidth="70dp"
|
||||
android:padding="5dp"
|
||||
android:text="@string/about_item_wechat_miniprogram" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
|
@ -26,6 +26,7 @@
|
||||
<string name="about_app_version">App Version: %s</string>
|
||||
<string name="about_cache_size">Cache Size: %s</string>
|
||||
<string name="about_frpc_version">Frpc Version:%s</string>
|
||||
<string name="about_item_wechat_miniprogram">WeChat MiniProgram</string>
|
||||
<string name="about_cache_purged">Cache cleared</string>
|
||||
<string name="about_frpc_deleted">Frpc Deleted, App restarting</string>
|
||||
<string name="about_copyright">© %1$s PPPSCN All rights reserved.</string>
|
||||
@ -54,6 +55,7 @@
|
||||
<string name="url_dingtalk_group">https://gitee.com/pp/SmsForwarder/raw/main/pic/dingtalk.png</string>
|
||||
<string name="url_wework_group">https://gitee.com/pp/SmsForwarder/raw/main/pic/qywechat.png</string>
|
||||
<string name="url_qq_channel">https://qun.qq.com/qqweb/qunpro/share?_wv=3&_wwv=128&appChannel=share&inviteCode=1W5aewP&appChannel=share&businessType=9&from=246610&biz=ka</string>
|
||||
<string name="url_wechat_miniprogram">https://gitee.com/pp/SmsForwarder/raw/main/pic/wechat_miniprogram.jpg</string>
|
||||
|
||||
<string name="lab_yes">Yes</string>
|
||||
<string name="lab_no">No</string>
|
||||
|
@ -26,6 +26,7 @@
|
||||
<string name="about_app_version">软件版本:%s</string>
|
||||
<string name="about_cache_size">缓存大小:%s</string>
|
||||
<string name="about_frpc_version">Frpc版本:%s</string>
|
||||
<string name="about_item_wechat_miniprogram">微信小程序</string>
|
||||
<string name="about_cache_purged">已清理缓存</string>
|
||||
<string name="about_frpc_deleted">已删除动态库,重启APP中…</string>
|
||||
<string name="about_copyright">© %1$s PPPSCN All rights reserved.</string>
|
||||
@ -54,6 +55,7 @@
|
||||
<string name="url_dingtalk_group">https://gitee.com/pp/SmsForwarder/raw/main/pic/dingtalk.png</string>
|
||||
<string name="url_wework_group">https://gitee.com/pp/SmsForwarder/raw/main/pic/qywechat.png</string>
|
||||
<string name="url_qq_channel">https://qun.qq.com/qqweb/qunpro/share?_wv=3&_wwv=128&appChannel=share&inviteCode=1W5aewP&appChannel=share&businessType=9&from=246610&biz=ka</string>
|
||||
<string name="url_wechat_miniprogram">https://gitee.com/pp/SmsForwarder/raw/main/pic/wechat_miniprogram.jpg</string>
|
||||
|
||||
<string name="lab_yes">是</string>
|
||||
<string name="lab_no">否</string>
|
||||
|
Loading…
Reference in New Issue
Block a user