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 18, 2018
2 parents 1741b40 + d186f68 commit 0ea0251
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
public class WXApiModule {
private static WXApiModule instans;
private IWXAPI mWXApi;

private String appId;
private WXApiModule() {

}

public static WXApiModule getInstans() {
Expand All @@ -31,6 +30,7 @@ public static WXApiModule getInstans() {

public void onCreateWXApi(Context context, String appId) {
if (!TextUtils.isEmpty(appId)) {
this.appId = appId;
mWXApi = WXAPIFactory.createWXAPI(context, appId, true);
}
}
Expand All @@ -39,4 +39,11 @@ public IWXAPI getWXApi() {
return mWXApi;
}

public String getAppId() {
return appId;
}

public void setAppId(String appId) {
this.appId = appId;
}
}

0 comments on commit 0ea0251

Please sign in to comment.