diff --git a/app/src/main/java/com/tencent/iot/explorer/link/mvp/presenter/LoginPresenter.kt b/app/src/main/java/com/tencent/iot/explorer/link/mvp/presenter/LoginPresenter.kt index eb2c7acb5..b1645dad6 100644 --- a/app/src/main/java/com/tencent/iot/explorer/link/mvp/presenter/LoginPresenter.kt +++ b/app/src/main/java/com/tencent/iot/explorer/link/mvp/presenter/LoginPresenter.kt @@ -12,7 +12,7 @@ class LoginPresenter : ParentPresenter { } fun getCountryCode(): String { - return model!!.getCountryCode() + return model?.getCountryCode().toString() } fun setCountry(country: String) {