public void OnPhoneBtnClick()
        {
            TheOriginalAccountManager manager = Singleton <AccountManager> .Instance.manager as TheOriginalAccountManager;

            if (manager != null)
            {
                WebViewGeneralLogic.LoadUrl(manager.ORIGINAL_MOBILE_REGISTER_URL, false);
            }
        }
示例#2
0
        public void OnModifyPswLinkCallBack()
        {
            TheOriginalAccountManager manager = Singleton <AccountManager> .Instance.manager as TheOriginalAccountManager;

            if (manager != null)
            {
                WebViewGeneralLogic.LoadUrl(manager.ORIGINAL_CHANGE_PASSWORD_URL, false);
            }
        }
        public void OnUseEmailBtnCallBack()
        {
            TheOriginalAccountManager manager = Singleton <AccountManager> .Instance.manager as TheOriginalAccountManager;

            if (manager != null)
            {
                WebViewGeneralLogic.LoadUrl(manager.ORIGINAL_EMAIL_PASSWORD_URL, false);
            }
        }
示例#4
0
        public void OnBindMobileBtnClick()
        {
            string accountUid   = Singleton <AccountManager> .Instance.manager.AccountUid;
            string accountToken = Singleton <AccountManager> .Instance.manager.AccountToken;
            TheOriginalAccountManager manager = Singleton <AccountManager> .Instance.manager as TheOriginalAccountManager;

            if (manager != null)
            {
                WebViewGeneralLogic.LoadUrl(string.Format(manager.ORIGINAL_BIND_MOBILE_URL + "?uid={0}&token={1}", accountUid, accountToken), false);
            }
        }
示例#5
0
 private bool OnCreateWeiXinOrderRsp(CreateWeiXinOrderRsp rsp)
 {
     if (rsp.get_retcode() == null)
     {
         if (Singleton <AccountManager> .Instance.accountConfig.paymentBranch == ConfigAccount.PaymentBranch.ORIGINAL_ANDROID_PAY)
         {
             TheOriginalAccountManager manager = Singleton <AccountManager> .Instance.manager as TheOriginalAccountManager;
             if (manager != null)
             {
                 manager.PayByWeiXinOrder(rsp.get_partner_id(), rsp.get_prepay_id(), rsp.get_nonce_str(), rsp.get_timestamp(), rsp.get_sign());
             }
         }
     }
     else
     {
         this.OnPurchaseCallback(new WeixinPayResult("ErrFailCreateWeiXinOrder"));
     }
     return(false);
 }