Commit 4a7fdcbd authored by wangxuewei's avatar wangxuewei

[提交人]:王雪伟

[提交简述] :幸福农场
[实现方案] :修改空指针
parent 994bd1f3
...@@ -101,11 +101,11 @@ class SplashActivity : BaseActivity(), SplashContract.View { ...@@ -101,11 +101,11 @@ class SplashActivity : BaseActivity(), SplashContract.View {
} }
override fun onAdClicked(data: NewsEntity) { override fun onAdClicked(data: NewsEntity) {
Log.e("huang", "onAdClicked()")
} }
override fun onAdShow(data: NewsEntity) { override fun onAdShow(data: NewsEntity) {
Log.e("huang", "onAdShow()")
} }
override fun onAdSkip() { override fun onAdSkip() {
......
...@@ -31,7 +31,7 @@ class BaseApplication : MultiDexApplication() { ...@@ -31,7 +31,7 @@ class BaseApplication : MultiDexApplication() {
//第一步初始化 application //第一步初始化 application
AppliContext.init(this) AppliContext.init(this)
Config.init(this) Config.init(this)
NetConfig.setBase_Url(NetConfig.Environment.PRODUCT)// TODO 上线之后提成成 NetConfig.Environment.PRODUCT NetConfig.setBase_Url(NetConfig.Environment.DEV)// TODO 上线之后提成成 NetConfig.Environment.PRODUCT
Constant.appLs = "a03d5320d905cf3b"//appls Constant.appLs = "a03d5320d905cf3b"//appls
AdManager.init(//TODO 替换id AdManager.init(//TODO 替换id
......
...@@ -121,7 +121,6 @@ class SiginDropsPopupwindow : PopupWindow(), WateringRewardContract.View, ...@@ -121,7 +121,6 @@ class SiginDropsPopupwindow : PopupWindow(), WateringRewardContract.View,
3 -> dismiss() 3 -> dismiss()
6 -> { 6 -> {
dismiss() dismiss()
EventUtils.onEvent("click_welfare_task_video_btn","福利任务视频")
JumpUtils.h5Jump("每日福利", Constant.Param.WelfareCenter, false) JumpUtils.h5Jump("每日福利", Constant.Param.WelfareCenter, false)
} }
4 -> { 4 -> {
......
...@@ -83,9 +83,11 @@ public class WxImplUtils implements UMAuthListener { ...@@ -83,9 +83,11 @@ public class WxImplUtils implements UMAuthListener {
} }
UserInfoEntity user = SettingPreference.getUserInfoData(); UserInfoEntity user = SettingPreference.getUserInfoData();
if (user!=null){
user.setBind(true); user.setBind(true);
user.setHeadimgurl(data.get("iconurl")); user.setHeadimgurl(data.get("iconurl"));
user.setNickname(data.get("screen_name")); user.setNickname(data.get("screen_name"));
}
SettingPreference.saveUserInfo(user); SettingPreference.saveUserInfo(user);
SettingPreference.saveUserInfoName(data.get("screen_name")); SettingPreference.saveUserInfoName(data.get("screen_name"));
mCallback.onWxSuccess(data.get("access_token"), data.get("openid")); mCallback.onWxSuccess(data.get("access_token"), data.get("openid"));
......
...@@ -35,5 +35,9 @@ ...@@ -35,5 +35,9 @@
android:id="@+id/activity_webview_layout" android:id="@+id/activity_webview_layout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="horizontal" /> android:orientation="horizontal" >
</LinearLayout>
</LinearLayout> </LinearLayout>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment