Skip to content

Commit

Permalink
Merge branch 'master' into plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyuanxiao committed May 31, 2018
2 parents 4802f65 + 085f9d8 commit 1b818a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ public class EventAuth extends EventGate {

@Override
public void perform(Context context, WeexEventBean weexEventBean) {
String param = weexEventBean.getJsParams();
if (SharePlatformCatalog.P_WECHATSESSION.equals(param)) {
wechat(context, weexEventBean.getJscallback());
}
wechat(context, weexEventBean.getJscallback());
}

public void wechat(Context context, JSCallback jscallback) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import com.benmu.framework.utils.DebugableUtil;
import com.umeng.analytics.MobclickAgent;
import com.umeng.commonsdk.UMConfigure;
import com.umeng.socialize.Config;
import com.umeng.socialize.PlatformConfig;
import com.umeng.socialize.UMShareAPI;

Expand All @@ -21,6 +22,7 @@ public class EventUmeng {

public void initUM(Context context, String androidAppKey) {
if (!TextUtils.isEmpty(androidAppKey)) {
Config.DEBUG = true;
UMConfigure.init(context, androidAppKey, "umeng", UMConfigure.DEVICE_TYPE_PHONE, "");
MobclickAgent.setDebugMode(DebugableUtil.isDebug());
MobclickAgent.openActivityDurationTrack(false);
Expand All @@ -33,7 +35,6 @@ public void initUM(Context context, String androidAppKey) {
public void initPlatform(Context context, String params) {
UmengPlagformBean bean = ManagerFactory.getManagerService(ParseManager.class).parseObject
(params, UmengPlagformBean.class);

PlatformConfig.setWeixin(bean.getAppKey(), bean.getAppSecret());

}
Expand Down

0 comments on commit 1b818a9

Please sign in to comment.