优化:openinstall返回的 admin_id,userid为null时,替换成""空字符串
This commit is contained in:
parent
3c25547f04
commit
bc205ea9e5
@ -48,6 +48,7 @@ import com.yunbao.common.manager.imrongcloud.RongcloudIMManager;
|
||||
import com.yunbao.common.utils.DialogUitl;
|
||||
import com.yunbao.common.utils.L;
|
||||
import com.yunbao.common.utils.RouteUtil;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.http.LiveHttpUtil;
|
||||
import com.yunbao.common.utils.LiveRoomCheckLivePresenter;
|
||||
@ -422,9 +423,14 @@ public class RegisterActivity extends AbsActivity {
|
||||
yqm_view.setVisibility(View.GONE);
|
||||
//推广的码
|
||||
mPromoCode = data.getString("admin_id") + "";
|
||||
if("null".equals(mPromoCode)){
|
||||
mPromoCode ="";
|
||||
}
|
||||
//用户的码
|
||||
UserID = data.getString("user_id") + "";
|
||||
|
||||
if("null".equals(UserID)){
|
||||
UserID ="";
|
||||
}
|
||||
agent_code = data.getString("agent_code") + "";
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user