|
|
@@ -192,8 +192,17 @@ public class LoginView : MonoBehaviour
|
|
|
));
|
|
|
}
|
|
|
|
|
|
+ JCUnityLib.Throttler throttlerLoginWX = new JCUnityLib.Throttler(2000);
|
|
|
public void LoginByWX()
|
|
|
{
|
|
|
+ if (!AgreenmentOption.ins.IsAgreementChecked()) {
|
|
|
+ PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("请阅读并同意App协议"));
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (throttlerLoginWX.CanPass() == false) {
|
|
|
+ PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("操作过于频繁"));
|
|
|
+ return;
|
|
|
+ }
|
|
|
#if UNITY_ANDROID
|
|
|
using (var sdk = new AndroidJavaClass("com.xmjssvr.BowArrow.mi.WeChatSDK")) sdk.CallStatic("WeChatLogin");
|
|
|
#endif
|