Skip to content

Commit

Permalink
commit add getAppid method
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyuanxiao committed May 18, 2018
1 parent 8e51924 commit d186f68
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 d186f68

Please sign in to comment.