Commit bc2815e8 by 霍志良

Merge remote-tracking branch 'origin/最新Dev' into MDT群聊搭建

parents 74fbae25 53b44f0a
...@@ -6,10 +6,10 @@ ext { ...@@ -6,10 +6,10 @@ ext {
// -------------- 业务模块 -------------- // -------------- 业务模块 --------------
//第三步 若干 //第三步 若干
"m-confide" : "0.0.49.53", "m-confide" : "0.0.49.53",
"m-consultant" : "0.0.60.10", "m-consultant" : "0.0.60.11",
"m-fm" : "0.0.30.04", "m-fm" : "0.0.30.04",
"m-user" : "0.0.61.96", "m-user" : "0.0.62.00",
"m-home" : "0.0.22.87", "m-home" : "0.0.22.93",
"m-im" : "0.0.21.18", "m-im" : "0.0.21.18",
"m-dynamic" : "0.0.7.35", "m-dynamic" : "0.0.7.35",
"m-article" : "0.0.0.10", "m-article" : "0.0.0.10",
...@@ -90,10 +90,10 @@ ext { ...@@ -90,10 +90,10 @@ ext {
//第三步 若干 //第三步 若干
"m-confide" : "0.0.49.52", "m-confide" : "0.0.49.52",
"m-consultant" : "0.0.60.10", "m-consultant" : "0.0.60.11",
"m-fm" : "0.0.30.07", "m-fm" : "0.0.30.07",
"m-user" : "0.0.61.96", "m-user" : "0.0.62.00",
"m-home" : "0.0.22.87", "m-home" : "0.0.22.93",
"m-im" : "0.0.21.18", "m-im" : "0.0.21.18",
"m-dynamic" : "0.0.7.35", "m-dynamic" : "0.0.7.35",
"m-article" : "0.0.0.8", "m-article" : "0.0.0.8",
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
android:layout_width="0.5dp" android:layout_width="0.5dp"
android:layout_height="26dp" android:layout_height="26dp"
android:layout_marginRight="8dp" android:layout_marginRight="8dp"
android:background="#80ffffff" /> android:background="#59ffffff" />
<LinearLayout <LinearLayout
android:id="@+id/ll_desc_assistant" android:id="@+id/ll_desc_assistant"
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="为你精准匹配咨询师 " android:text="为你精准匹配咨询师"
android:textColor="#ffffff" android:textColor="#ffffff"
android:textStyle="bold" android:textStyle="bold"
android:textSize="12dp" /> android:textSize="12dp" />
...@@ -72,6 +72,7 @@ ...@@ -72,6 +72,7 @@
<ImageView <ImageView
android:layout_width="10dp" android:layout_width="10dp"
android:layout_height="10dp" android:layout_height="10dp"
android:layout_marginStart="3dp"
android:src="@drawable/consultant_assistant_dialog_go_icon" /> android:src="@drawable/consultant_assistant_dialog_go_icon" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
......
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android" <shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"> android:shape="rectangle">
<corners android:topLeftRadius="8dp" <corners android:topLeftRadius="22dp"
android:bottomLeftRadius="8dp"/> android:bottomLeftRadius="22dp"/>
<gradient <gradient
android:angle="0" android:angle="0"
android:startColor="#CC1DA1F2" android:startColor="#DDFF7A5C"
android:endColor="#CC1DA1F2"/> android:endColor="#DDFF406C"/>
</shape> </shape>
\ No newline at end of file
...@@ -102,6 +102,7 @@ object LoginUtils { ...@@ -102,6 +102,7 @@ object LoginUtils {
@JvmStatic @JvmStatic
fun logoutClearLocal() { fun logoutClearLocal() {
logingCallBackListener=null
AliYunRichLogsHelper.getInstance().sendRichLog(AliYunLogConfig.LOGIN, "退出登录") AliYunRichLogsHelper.getInstance().sendRichLog(AliYunLogConfig.LOGIN, "退出登录")
UserIn.imLogout() UserIn.imLogout()
UserIn.closePlayer() UserIn.closePlayer()
...@@ -111,7 +112,9 @@ object LoginUtils { ...@@ -111,7 +112,9 @@ object LoginUtils {
@JvmStatic @JvmStatic
fun loginSuccessOperate(activity: Activity) { fun loginSuccessOperate(activity: Activity) {
if (logingCallBackListener!=null){
logingCallBackListener?.loginSuccess() logingCallBackListener?.loginSuccess()
}
// 登录成功后,如果一键登录界面没有关闭,则关闭掉 // 登录成功后,如果一键登录界面没有关闭,则关闭掉
OneKeyLoginHelp.quitLoginPage() OneKeyLoginHelp.quitLoginPage()
val size = ActivityManager.getActivitySize() val size = ActivityManager.getActivitySize()
......
...@@ -437,7 +437,7 @@ object OneKeyLoginHelp { ...@@ -437,7 +437,7 @@ object OneKeyLoginHelp {
.subscribe({ .subscribe({
if (it.code == 200) { if (it.code == 200) {
AliYunRichLogsHelper.getInstance() AliYunRichLogsHelper.getInstance()
.sendRichLog(AliYunLogConfig.LOGIN, "一键登录成功") .sendRichLog(AliYunLogConfig.LOGIN, "一键登录成功uid:"+it.data.uid+"firstLogin:"+it.data.firstLogin)
ToastUtil.toastShort("登录成功") ToastUtil.toastShort("登录成功")
saveUserData(it.data) saveUserData(it.data)
if (it.data.firstLogin == 1) {//第一次登录:是注册 if (it.data.firstLogin == 1) {//第一次登录:是注册
...@@ -599,8 +599,8 @@ object OneKeyLoginHelp { ...@@ -599,8 +599,8 @@ object OneKeyLoginHelp {
* @return true:登录。false:未登录 * @return true:登录。false:未登录
* */ * */
fun startLoginByStatusLoginCallBack(context: Context, isOpenDialog: Boolean,listener: LoginCallBackListener) { fun startLoginByStatusLoginCallBack(context: Context, isOpenDialog: Boolean,listener: LoginCallBackListener) {
LoginUtils.setLoginCallBack(listener)
if (!UserHelper.isLogin()) { if (!UserHelper.isLogin()) {
LoginUtils.setLoginCallBack(listener)
if (this::mActivity.isInitialized) { if (this::mActivity.isInitialized) {
//如果mActivity有初始化,代表项目使用了一键登录 //如果mActivity有初始化,代表项目使用了一键登录
startLogin(context as Activity, isOpenDialog) startLogin(context as Activity, isOpenDialog)
......
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