| | |
| | | package com.doudou.ysvideo.wxapi; |
| | | package com.hanju.video.wxapi; |
| | | |
| | | |
| | | import android.app.Activity; |
| | | import android.app.ProgressDialog; |
| | | import android.content.Context; |
| | | import android.content.SharedPreferences; |
| | | import android.graphics.Color; |
| | | import android.os.Build; |
| | | import android.os.Bundle; |
| | | import android.support.annotation.Nullable; |
| | | import androidx.annotation.Nullable; |
| | | import android.view.View; |
| | | import android.view.Window; |
| | | import android.view.WindowManager; |
| | | |
| | | import com.hanju.video.app.HanJuApplication; |
| | | import com.lcjian.library.util.SingleToast; |
| | | import com.tencent.mm.opensdk.modelbase.BaseReq; |
| | | import com.tencent.mm.opensdk.modelbase.BaseResp; |
| | | import com.tencent.mm.opensdk.modelmsg.SendAuth; |
| | | import com.tencent.mm.opensdk.openapi.IWXAPIEventHandler; |
| | | import com.weikou.beibeivideo.BasicTextHttpResponseHandler; |
| | | import com.weikou.beibeivideo.BeibeiVideoAPI; |
| | | import com.weikou.beibeivideo.BeibeiVideoApplication; |
| | | import com.weikou.beibeivideo.ui.BaseActivity; |
| | | import com.weikou.beibeivideo.util.UserUtil; |
| | | import com.hanju.video.app.BasicTextHttpResponseHandler; |
| | | import com.hanju.video.app.HttpApiUtil; |
| | | import com.hanju.video.app.ui.BaseActivity; |
| | | import com.hanju.video.app.util.UserUtil; |
| | | |
| | | import org.apache.http.Header; |
| | | import org.json.JSONObject; |
| | |
| | | window.setStatusBarColor(Color.TRANSPARENT); |
| | | } |
| | | //如果没回调onResp,八成是这句没有写 |
| | | BeibeiVideoApplication.application.mWxApi.handleIntent(getIntent(), this); |
| | | HanJuApplication.mWxApi.handleIntent(getIntent(), this); |
| | | dialog = new ProgressDialog(this); |
| | | } |
| | | |
| | |
| | | * 请求服务器匹配验证码 |
| | | */ |
| | | private void setLogin(String code) { |
| | | BeibeiVideoAPI.wxLogin(this, UserUtil.getUid(this), code, new BasicTextHttpResponseHandler() { |
| | | HttpApiUtil.wxLogin(this, UserUtil.getUid(this), code, new BasicTextHttpResponseHandler() { |
| | | |
| | | @Override |
| | | public void onStart() { |