添加公共参数areaCode,修改个人信息字段
This commit is contained in:
parent
71af96f17f
commit
abc1d23a37
@ -1,32 +1,43 @@
|
|||||||
## 2020-9-22 修改内容
|
## 2020-9-22 修改内容
|
||||||
|
|
||||||
> 1修复微信分享,添加微信朋友圈分享
|
> 1修复微信分享,添加微信朋友圈分享
|
||||||
>
|
>
|
||||||
>2 修改新闻布局(条目标题行宽)
|
>2 修改新闻布局(条目标题行宽)
|
||||||
>
|
>
|
||||||
>3 修改App-logo 我的中添加服务专线
|
>3 修改App-logo 我的中添加服务专线
|
||||||
|
|
||||||
## 2020-12-23 修改内容
|
## 2020-12-23 修改内容
|
||||||
|
|
||||||
> 1修改域名
|
> 1修改域名
|
||||||
>
|
>
|
||||||
> 2电话号码校验正则添加191号段
|
> 2电话号码校验正则添加191号段
|
||||||
|
|
||||||
## 2021-1-5 修改内容
|
## 2021-1-5 修改内容
|
||||||
|
|
||||||
> 1 新闻条目字体大小
|
> 1 新闻条目字体大小
|
||||||
>
|
>
|
||||||
> 2 新闻列表评论数量与条目信息拆分
|
> 2 新闻列表评论数量与条目信息拆分
|
||||||
|
|
||||||
## 2021-3-27 添加新闻类型
|
## 2021-3-27 添加新闻类型
|
||||||
|
|
||||||
> 1 添加新闻类型 newsContentType=6 newsContentContent:链接 链接新闻
|
> 1 添加新闻类型 newsContentType=6 newsContentContent:链接 链接新闻
|
||||||
>
|
>
|
||||||
> 2 详情页 NewsWebActivity
|
> 2 详情页 NewsWebActivity
|
||||||
>
|
>
|
||||||
> 3 隐藏各种中心状态栏(ImmersionBar)
|
> 3 隐藏各种中心状态栏(ImmersionBar)
|
||||||
|
|
||||||
## 2022-12-6 修改接口
|
## 2022-12-6 修改接口
|
||||||
|
|
||||||
> 1 修改接口
|
> 1 修改接口
|
||||||
>
|
>
|
||||||
> 2 适配android 12与11 Toast
|
> 2 适配android 12与11 Toast
|
||||||
>
|
>
|
||||||
> 3 升级 gradle
|
> 3 升级 gradle
|
||||||
>
|
>
|
||||||
> 4 多包名打包方式
|
> 4 多包名打包方式
|
||||||
|
|
||||||
|
|
||||||
|
## 2022-12-19
|
||||||
|
|
||||||
|
> 1.App名称修改,以及动态获取
|
||||||
|
> 2.首页地区选择去除
|
133
app/build.gradle
133
app/build.gradle
@ -3,19 +3,20 @@ apply plugin: 'com.android.application'
|
|||||||
android {
|
android {
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
release {
|
release {
|
||||||
storeFile file('/Users/adam/Documents/work/tengshi.jks')
|
storeFile file('/Users/adam/Documents/work/keystore/tengshi.jks')
|
||||||
storePassword 'aaa111!!!'
|
storePassword 'aaa111!!!'
|
||||||
keyAlias = 'tengshi'
|
keyAlias = 'tengshi'
|
||||||
keyPassword 'aaa111!!!'
|
keyPassword 'aaa111!!!'
|
||||||
}
|
}
|
||||||
debug {
|
debug {
|
||||||
storeFile file('/Users/adam/Documents/work/tengshi.jks')
|
storeFile file('/Users/adam/Documents/work/keystore/tengshi.jks')
|
||||||
storePassword 'aaa111!!!'
|
storePassword 'aaa111!!!'
|
||||||
keyAlias = 'tengshi'
|
keyAlias = 'tengshi'
|
||||||
keyPassword 'aaa111!!!'
|
keyPassword 'aaa111!!!'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
compileSdkVersion rootProject.ext.gCompileSdkVersion
|
compileSdkVersion rootProject.ext.gCompileSdkVersion
|
||||||
|
buildToolsVersion '30.0.2'
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "com.tengshisoft.cultural"
|
applicationId "com.tengshisoft.cultural"
|
||||||
minSdkVersion rootProject.ext.gMinSdkVersion
|
minSdkVersion rootProject.ext.gMinSdkVersion
|
||||||
@ -58,112 +59,202 @@ android {
|
|||||||
applicationId "com.tenlion.cultural.sangzhuzi"
|
applicationId "com.tenlion.cultural.sangzhuzi"
|
||||||
dimension 'market'
|
dimension 'market'
|
||||||
resValue "string", "APP_CHANNEL", "sangzhuzi"
|
resValue "string", "APP_CHANNEL", "sangzhuzi"
|
||||||
manifestPlaceholders = [CHANNEL_VALUE: "sangzhuzi", CITY_CODE: "640676"]
|
manifestPlaceholders = [CHANNEL_VALUE: "sangzhuzi",
|
||||||
|
APP_LOGO : "@drawable/app_logoo",
|
||||||
|
CITY_ID : "640676",
|
||||||
|
CITY_CODE : "540202000000",
|
||||||
|
BD_KEY : "ipb1ae32sNDRMbwOOpApG6bVBji9K86R",
|
||||||
|
APP_NAME : "桑珠孜区数字文化云"]
|
||||||
}
|
}
|
||||||
nanmulin {
|
nanmulin {
|
||||||
applicationId "com.tenlion.cultural.nanmulin"
|
applicationId "com.tenlion.cultural.nanmulin"
|
||||||
dimension 'market'
|
dimension 'market'
|
||||||
resValue "string", "APP_CHANNEL", "nanmulin"
|
resValue "string", "APP_CHANNEL", "nanmulin"
|
||||||
manifestPlaceholders = [CHANNEL_VALUE: "nanmulin", CITY_CODE: "640865"]
|
manifestPlaceholders = [CHANNEL_VALUE: "nanmulin",
|
||||||
|
APP_LOGO : "@drawable/app_logo",
|
||||||
|
CITY_ID : "640865",
|
||||||
|
CITY_CODE : "540221000000",
|
||||||
|
BD_KEY : "g0G2QLpGCAFV8QKxKo5irCZDwPlCPRTQ",
|
||||||
|
APP_NAME : "南木林县数字文化云"]
|
||||||
}
|
}
|
||||||
jiangzi {
|
jiangzi {
|
||||||
applicationId "com.tenlion.cultural.jiangzi"
|
applicationId "com.tenlion.cultural.jiangzi"
|
||||||
dimension 'market'
|
dimension 'market'
|
||||||
resValue "string", "APP_CHANNEL", "jiangzi"
|
resValue "string", "APP_CHANNEL", "jiangzi"
|
||||||
manifestPlaceholders = [CHANNEL_VALUE: "jiangzi", CITY_CODE: "641029"]
|
manifestPlaceholders = [CHANNEL_VALUE: "jiangzi",
|
||||||
|
APP_LOGO : "@drawable/app_logo",
|
||||||
|
CITY_ID : "641029",
|
||||||
|
CITY_CODE : "540222000000",
|
||||||
|
BD_KEY : "ZkcqIoGvjy8EfIwaal796KSNEWFsmObL",
|
||||||
|
APP_NAME : "江孜县数字文化云"]
|
||||||
}
|
}
|
||||||
dingri {
|
dingri {
|
||||||
applicationId "com.tenlion.cultural.dingri"
|
applicationId "com.tenlion.cultural.dingri"
|
||||||
dimension 'market'
|
dimension 'market'
|
||||||
resValue "string", "APP_CHANNEL", "dingri"
|
resValue "string", "APP_CHANNEL", "dingri"
|
||||||
manifestPlaceholders = [CHANNEL_VALUE: "dingri", CITY_CODE: "641204"]
|
manifestPlaceholders = [CHANNEL_VALUE: "dingri",
|
||||||
|
APP_LOGO : "@drawable/app_logo",
|
||||||
|
CITY_ID : "641204",
|
||||||
|
CITY_CODE : "540223000000",
|
||||||
|
BD_KEY : "ql1MLXVWxztmqN2cdxGpe7aYdcvNdRSd",
|
||||||
|
APP_NAME : "定日县数字文化云"]
|
||||||
}
|
}
|
||||||
sajia {
|
sajia {
|
||||||
applicationId "com.tenlion.cultural.sajia"
|
applicationId "com.tenlion.cultural.sajia"
|
||||||
dimension 'market'
|
dimension 'market'
|
||||||
resValue "string", "APP_CHANNEL", "sajia"
|
resValue "string", "APP_CHANNEL", "sajia"
|
||||||
manifestPlaceholders = [CHANNEL_VALUE: "sajia", CITY_CODE: "641393"]
|
manifestPlaceholders = [CHANNEL_VALUE: "sajia",
|
||||||
|
APP_LOGO : "@drawable/app_logo",
|
||||||
|
CITY_ID : "641393",
|
||||||
|
CITY_CODE : "540224000000",
|
||||||
|
BD_KEY : "PoMpzyP5FGptOGR4dFByXd6euQ66IDI5",
|
||||||
|
APP_NAME : "萨迦县数字文化云"]
|
||||||
}
|
}
|
||||||
lazi {
|
lazi {
|
||||||
applicationId "com.tenlion.cultural.lazi"
|
applicationId "com.tenlion.cultural.lazi"
|
||||||
dimension 'market'
|
dimension 'market'
|
||||||
resValue "string", "APP_CHANNEL", "lazi"
|
resValue "string", "APP_CHANNEL", "lazi"
|
||||||
manifestPlaceholders = [CHANNEL_VALUE: "lazi", CITY_CODE: "641512"]
|
manifestPlaceholders = [CHANNEL_VALUE: "lazi",
|
||||||
|
APP_LOGO : "@drawable/app_logo",
|
||||||
|
CITY_ID : "641512",
|
||||||
|
CITY_CODE : "540225000000",
|
||||||
|
BD_KEY : "LYw9cxjZ6eNLQ5vFIMvmcvafENtfIG8y",
|
||||||
|
APP_NAME : "拉孜县数字文化云"]
|
||||||
}
|
}
|
||||||
angren {
|
angren {
|
||||||
applicationId "com.tenlion.cultural.angren"
|
applicationId "com.tenlion.cultural.angren"
|
||||||
dimension 'market'
|
dimension 'market'
|
||||||
resValue "string", "APP_CHANNEL", "angren"
|
resValue "string", "APP_CHANNEL", "angren"
|
||||||
manifestPlaceholders = [CHANNEL_VALUE: "angren", CITY_CODE: "641622"]
|
manifestPlaceholders = [CHANNEL_VALUE: "angren",
|
||||||
|
APP_LOGO : "@drawable/app_logo",
|
||||||
|
CITY_ID : "641622",
|
||||||
|
CITY_CODE : "540226000000",
|
||||||
|
BD_KEY : "YGTBM02Sgut6xqT9D5lrcfeYqBhE6Ncr",
|
||||||
|
APP_NAME : "昂仁县数字文化云"]
|
||||||
}
|
}
|
||||||
xietongmen {
|
xietongmen {
|
||||||
applicationId "com.tenlion.cultural.xietongmen"
|
applicationId "com.tenlion.cultural.xietongmen"
|
||||||
dimension 'market'
|
dimension 'market'
|
||||||
resValue "string", "APP_CHANNEL", "xietongmen"
|
resValue "string", "APP_CHANNEL", "xietongmen"
|
||||||
manifestPlaceholders = [CHANNEL_VALUE: "xietongmen", CITY_CODE: "641825"]
|
manifestPlaceholders = [CHANNEL_VALUE: "xietongmen",
|
||||||
|
APP_LOGO : "@drawable/app_logo",
|
||||||
|
CITY_ID : "641825",
|
||||||
|
CITY_CODE : "540227000000",
|
||||||
|
BD_KEY : "3Y4ZNEGjTGt9iFSHpF1r1iNdnCBxmYIg",
|
||||||
|
APP_NAME : "谢通门县数字文化云"]
|
||||||
}
|
}
|
||||||
bailang {
|
bailang {
|
||||||
applicationId "com.tenlion.cultural.bailang"
|
applicationId "com.tenlion.cultural.bailang"
|
||||||
dimension 'market'
|
dimension 'market'
|
||||||
resValue "string", "APP_CHANNEL", "bailang"
|
resValue "string", "APP_CHANNEL", "bailang"
|
||||||
manifestPlaceholders = [CHANNEL_VALUE: "bailang", CITY_CODE: "641940"]
|
manifestPlaceholders = [CHANNEL_VALUE: "bailang",
|
||||||
|
APP_LOGO : "@drawable/app_logo",
|
||||||
|
CITY_ID : "641940",
|
||||||
|
CITY_CODE : "540228000000",
|
||||||
|
BD_KEY : "DlnhdI1CmTqBZBCRFkGdnxrDaStkQsu5",
|
||||||
|
APP_NAME : "白朗县数字文化云"]
|
||||||
}
|
}
|
||||||
renbu {
|
renbu {
|
||||||
applicationId "com.tenlion.cultural.renbu"
|
applicationId "com.tenlion.cultural.renbu"
|
||||||
dimension 'market'
|
dimension 'market'
|
||||||
resValue "string", "APP_CHANNEL", "renbu"
|
resValue "string", "APP_CHANNEL", "renbu"
|
||||||
manifestPlaceholders = [CHANNEL_VALUE: "renbu", CITY_CODE: "642063"]
|
manifestPlaceholders = [CHANNEL_VALUE: "renbu",
|
||||||
|
APP_LOGO : "@drawable/app_logo",
|
||||||
|
CITY_ID : "642063",
|
||||||
|
CITY_CODE : "540229000000",
|
||||||
|
BD_KEY : "UL2rUUtPhOq3xBBWpnDGiEuTNHLvtWuh",
|
||||||
|
APP_NAME : "仁布县数字文化云"]
|
||||||
}
|
}
|
||||||
kangma {
|
kangma {
|
||||||
applicationId "com.tenlion.cultural.kangma"
|
applicationId "com.tenlion.cultural.kangma"
|
||||||
dimension 'market'
|
dimension 'market'
|
||||||
resValue "string", "APP_CHANNEL", "kangma"
|
resValue "string", "APP_CHANNEL", "kangma"
|
||||||
manifestPlaceholders = [CHANNEL_VALUE: "kangma", CITY_CODE: "642146"]
|
manifestPlaceholders = [CHANNEL_VALUE: "kangma",
|
||||||
|
APP_LOGO : "@drawable/app_logo",
|
||||||
|
CITY_ID : "642146",
|
||||||
|
CITY_CODE : "540230000000",
|
||||||
|
BD_KEY : "kQsUL41b09E3nhtNIo2ohEKalWwhDFeV",
|
||||||
|
APP_NAME : "康马县数字文化云"]
|
||||||
}
|
}
|
||||||
dingjie {
|
dingjie {
|
||||||
applicationId "com.tenlion.cultural.dingjie"
|
applicationId "com.tenlion.cultural.dingjie"
|
||||||
dimension 'market'
|
dimension 'market'
|
||||||
resValue "string", "APP_CHANNEL", "dingjie"
|
resValue "string", "APP_CHANNEL", "dingjie"
|
||||||
manifestPlaceholders = [CHANNEL_VALUE: "dingjie", CITY_CODE: "642203"]
|
manifestPlaceholders = [CHANNEL_VALUE: "dingjie",
|
||||||
|
APP_LOGO : "@drawable/app_logo",
|
||||||
|
CITY_ID : "642203",
|
||||||
|
CITY_CODE : "540231000000",
|
||||||
|
BD_KEY : "4rGrPthpteXXbkyrQXYkbX34YQ31PpH5",
|
||||||
|
APP_NAME : "定结县数字文化云"]
|
||||||
}
|
}
|
||||||
zhongba {
|
zhongba {
|
||||||
applicationId "com.tenlion.cultural.zhongba"
|
applicationId "com.tenlion.cultural.zhongba"
|
||||||
dimension 'market'
|
dimension 'market'
|
||||||
resValue "string", "APP_CHANNEL", "zhongba"
|
resValue "string", "APP_CHANNEL", "zhongba"
|
||||||
manifestPlaceholders = [CHANNEL_VALUE: "zhongba", CITY_CODE: "642284"]
|
manifestPlaceholders = [CHANNEL_VALUE: "zhongba",
|
||||||
|
APP_LOGO : "@drawable/app_logo",
|
||||||
|
CITY_ID : "642284",
|
||||||
|
CITY_CODE : "540232000000",
|
||||||
|
BD_KEY : "HpPUfcA5QdexPDpP7QOakTFGHGGtmSQo",
|
||||||
|
APP_NAME : "仲巴县数字文化云"]
|
||||||
}
|
}
|
||||||
yadong {
|
yadong {
|
||||||
applicationId "com.tenlion.cultural.yadong"
|
applicationId "com.tenlion.cultural.yadong"
|
||||||
dimension 'market'
|
dimension 'market'
|
||||||
resValue "string", "APP_CHANNEL", "yadong"
|
resValue "string", "APP_CHANNEL", "yadong"
|
||||||
manifestPlaceholders = [CHANNEL_VALUE: "yadong", CITY_CODE: "642356"]
|
manifestPlaceholders = [CHANNEL_VALUE: "yadong",
|
||||||
|
APP_LOGO : "@drawable/app_logo",
|
||||||
|
CITY_ID : "642356",
|
||||||
|
CITY_CODE : "540233000000",
|
||||||
|
BD_KEY : "vICh5EdGtR5k2RdTaXYWoyDLBai2fVof",
|
||||||
|
APP_NAME : "亚东县数字文化云"]
|
||||||
}
|
}
|
||||||
jilong {
|
jilong {
|
||||||
applicationId "com.tenlion.cultural.jilong"
|
applicationId "com.tenlion.cultural.jilong"
|
||||||
dimension 'market'
|
dimension 'market'
|
||||||
resValue "string", "APP_CHANNEL", "jilong"
|
resValue "string", "APP_CHANNEL", "jilong"
|
||||||
manifestPlaceholders = [CHANNEL_VALUE: "jilong", CITY_CODE: "642389"]
|
manifestPlaceholders = [CHANNEL_VALUE: "jilong",
|
||||||
|
APP_LOGO : "@drawable/app_logo",
|
||||||
|
CITY_ID : "642389",
|
||||||
|
CITY_CODE : "540234000000",
|
||||||
|
BD_KEY : "1uYUV884B8jzRnQG3FlZe5484mWWBkr4",
|
||||||
|
APP_NAME : "吉隆县数字文化云"]
|
||||||
}
|
}
|
||||||
nielamu {
|
nielamu {
|
||||||
applicationId "com.tenlion.cultural.nielamu"
|
applicationId "com.tenlion.cultural.nielamu"
|
||||||
dimension 'market'
|
dimension 'market'
|
||||||
resValue "string", "APP_CHANNEL", "nielamu"
|
resValue "string", "APP_CHANNEL", "nielamu"
|
||||||
manifestPlaceholders = [CHANNEL_VALUE: "nielamu", CITY_CODE: "642437"]
|
manifestPlaceholders = [CHANNEL_VALUE: "nielamu",
|
||||||
|
APP_LOGO : "@drawable/app_logo",
|
||||||
|
CITY_ID : "642437",
|
||||||
|
CITY_CODE : "540235000000",
|
||||||
|
BD_KEY : "EZOGc1TFrNolwpiwDNWgaTIzCYQOKrk0",
|
||||||
|
APP_NAME : "聂拉木县数字文化云"]
|
||||||
}
|
}
|
||||||
saga {
|
saga {
|
||||||
applicationId "com.tenlion.cultural.saga"
|
applicationId "com.tenlion.cultural.saga"
|
||||||
dimension 'market'
|
dimension 'market'
|
||||||
resValue "string", "APP_CHANNEL", "saga"
|
resValue "string", "APP_CHANNEL", "saga"
|
||||||
manifestPlaceholders = [CHANNEL_VALUE: "saga", CITY_CODE: "642489"]
|
manifestPlaceholders = [CHANNEL_VALUE: "saga",
|
||||||
|
APP_LOGO : "@drawable/app_logo",
|
||||||
|
CITY_ID : "642489",
|
||||||
|
CITY_CODE : "540236000000",
|
||||||
|
BD_KEY : "FzlGpMenDV34XFpGWIuiO4s6Tw2otlIK",
|
||||||
|
APP_NAME : "萨嘎县数字文化云"]
|
||||||
}
|
}
|
||||||
gangba {
|
gangba {
|
||||||
applicationId "com.tenlion.cultural.gangba"
|
applicationId "com.tenlion.cultural.gangba"
|
||||||
dimension 'market'
|
dimension 'market'
|
||||||
resValue "string", "APP_CHANNEL", "gangba"
|
resValue "string", "APP_CHANNEL", "gangba"
|
||||||
manifestPlaceholders = [CHANNEL_VALUE: "gangba", CITY_CODE: "642536"]
|
manifestPlaceholders = [CHANNEL_VALUE: "gangba",
|
||||||
|
APP_LOGO : "@drawable/app_logo",
|
||||||
|
CITY_ID : "642536",
|
||||||
|
CITY_CODE : "540237000000",
|
||||||
|
BD_KEY : "PCSYjtiOsUEBCpK5SjZ2xsBN55jqfsIl",
|
||||||
|
APP_NAME : "岗巴县数字文化云"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
buildToolsVersion '30.0.2'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -1,26 +1,34 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
package="com.tengshisoft.cultural">
|
package="com.tengshisoft.cultural">
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:name="com.tengshisoft.BaseMyApplication"
|
android:name="com.tengshisoft.BaseMyApplication"
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
android:icon="@drawable/app_logo"
|
android:icon="${APP_LOGO}"
|
||||||
android:label="@string/app_name"
|
android:label="${APP_NAME}"
|
||||||
android:maxAspectRatio="2.4"
|
android:maxAspectRatio="2.4"
|
||||||
android:networkSecurityConfig="@xml/network_config"
|
android:networkSecurityConfig="@xml/network_config"
|
||||||
android:requestLegacyExternalStorage="true"
|
android:requestLegacyExternalStorage="true"
|
||||||
android:resizeableActivity="true"
|
android:resizeableActivity="true"
|
||||||
android:roundIcon="@drawable/app_logo"
|
android:roundIcon="${APP_LOGO}"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:theme="@style/AppTheme"
|
android:theme="@style/AppTheme"
|
||||||
android:usesCleartextTraffic="true">
|
android:usesCleartextTraffic="true"
|
||||||
|
tools:replace="android:label">
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="CHANNEL_VALUE"
|
android:name="CHANNEL_VALUE"
|
||||||
android:value="${CHANNEL_VALUE}" />
|
android:value="${CHANNEL_VALUE}" />
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="CITY_CODE"
|
android:name="CITY_CODE"
|
||||||
android:value="${CITY_CODE}" />
|
android:value="${CITY_CODE}" />
|
||||||
|
<meta-data
|
||||||
|
android:name="CITY_ID"
|
||||||
|
android:value="${CITY_ID}" />
|
||||||
|
<meta-data
|
||||||
|
android:name="APP_NAME"
|
||||||
|
android:value="${APP_NAME}" />
|
||||||
|
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
@ -31,7 +39,7 @@
|
|||||||
<!-- android:value="com.sucstepsoft.hs.supervision" />-->
|
<!-- android:value="com.sucstepsoft.hs.supervision" />-->
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="com.baidu.lbsapi.API_KEY"
|
android:name="com.baidu.lbsapi.API_KEY"
|
||||||
android:value="sdX2qpmzj85dEUGLS74982Gt1fFBjvS7" />
|
android:value="${BD_KEY}" />
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="android.max_aspect"
|
android:name="android.max_aspect"
|
||||||
android:value="2.4" />
|
android:value="2.4" />
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
<application
|
<application
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
android:label="@string/app_name"
|
|
||||||
android:supportsRtl="true">
|
android:supportsRtl="true">
|
||||||
<activity
|
<activity
|
||||||
android:name=".activitys.TextureVideoActivity"
|
android:name=".activitys.TextureVideoActivity"
|
||||||
|
@ -216,12 +216,12 @@ public class PathConfig {
|
|||||||
public static final String PATH_MODULE_CMUTILS_CONDITION = "/modulecmutils/activity/condition";//条件查询activ
|
public static final String PATH_MODULE_CMUTILS_CONDITION = "/modulecmutils/activity/condition";//条件查询activ
|
||||||
|
|
||||||
//=====================字典ID==========================
|
//=====================字典ID==========================
|
||||||
public static final String DID_WORK = "3a019a6f-d1f7-4a45-8426-e2300f533bca";//工作状态
|
public static final String DID_WORK = "7ccc9586-f326-4c63-9f8c-4185795dd8c3";//工作状态
|
||||||
public static final String DID_PI = "f9ff0a87-7ccf-4257-9471-f337e9c2b857";//政治面貌
|
public static final String DID_PI = "1c249f67-d257-458d-8aac-c1e0561823d8";//政治面貌
|
||||||
public static final String DID_EDU = "7cf06b2e-418e-4be8-b4f8-be49cef7d1f0";//学历
|
public static final String DID_EDU = "e18d7126-f3b0-49cb-aeee-070e54889942";//学历
|
||||||
public static final String DID_NATIVE = "";//籍贯
|
public static final String DID_NATIVE = "";//籍贯
|
||||||
public static final String DID_SEX = "90f09612-9deb-4229-8d73-d6a865056cde";//性别
|
public static final String DID_SEX = "90f09612-9deb-4229-8d73-d6a865056cde";//性别
|
||||||
public static final String DID_NATION = "e64a01f7-dac9-40da-a2fe-50225fb287aa";//民族
|
public static final String DID_NATION = "61f86a5a-22b2-4d14-8cdb-46d3cd2bd864";//民族
|
||||||
public static final String DID_ADDRESS = "";//地址
|
public static final String DID_ADDRESS = "";//地址
|
||||||
public static final String DID_SERVICE_AREA = "761d8633-3c2f-4e92-b32d-fb50d3dc07b7";//服务区域
|
public static final String DID_SERVICE_AREA = "761d8633-3c2f-4e92-b32d-fb50d3dc07b7";//服务区域
|
||||||
public static final String DID_SERVICE_TYPE = "a223b308-014a-4e89-93fa-035a564e7fda";//服务类别
|
public static final String DID_SERVICE_TYPE = "a223b308-014a-4e89-93fa-035a564e7fda";//服务类别
|
||||||
|
@ -18,42 +18,42 @@ public class EditUserInfo {
|
|||||||
* userInfos : [{"key":"string","value":"string"}]
|
* userInfos : [{"key":"string","value":"string"}]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
private String avatar;
|
private String userAvatar;
|
||||||
private String email;
|
private String userEmail;
|
||||||
private String name;
|
private String userName;
|
||||||
private String phone;
|
private String userPhone;
|
||||||
private List<UserInfosBean> userInfos;
|
private List<UserInfosBean> userInfos;
|
||||||
|
|
||||||
public String getAvatar() {
|
public String getUserAvatar() {
|
||||||
return avatar;
|
return userAvatar;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAvatar(String avatar) {
|
public void setUserAvatar(String userAvatar) {
|
||||||
this.avatar = avatar;
|
this.userAvatar = userAvatar;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getEmail() {
|
public String getUserEmail() {
|
||||||
return email;
|
return userEmail;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEmail(String email) {
|
public void setUserEmail(String userEmail) {
|
||||||
this.email = email;
|
this.userEmail = userEmail;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName() {
|
public String getUserName() {
|
||||||
return name;
|
return userName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(String name) {
|
public void setUserName(String userName) {
|
||||||
this.name = name;
|
this.userName = userName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getPhone() {
|
public String getUserPhone() {
|
||||||
return phone;
|
return userPhone;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPhone(String phone) {
|
public void setUserPhone(String userPhone) {
|
||||||
this.phone = phone;
|
this.userPhone = userPhone;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<UserInfosBean> getUserInfos() {
|
public List<UserInfosBean> getUserInfos() {
|
||||||
|
@ -34,9 +34,9 @@ public class SaveUserInfoBean {
|
|||||||
private String userZipCode;
|
private String userZipCode;
|
||||||
// @ApiModelProperty(name = "userIntroduction", value = "人员简介")
|
// @ApiModelProperty(name = "userIntroduction", value = "人员简介")
|
||||||
private String userIntroduction;
|
private String userIntroduction;
|
||||||
private String name;
|
private String userName;
|
||||||
private String email;
|
private String userEmail;
|
||||||
private String phone;
|
private String userPhone;
|
||||||
|
|
||||||
public String getUserRealName() {
|
public String getUserRealName() {
|
||||||
return userRealName;
|
return userRealName;
|
||||||
@ -166,27 +166,27 @@ public class SaveUserInfoBean {
|
|||||||
this.userIntroduction = userIntroduction;
|
this.userIntroduction = userIntroduction;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName() {
|
public String getUserName() {
|
||||||
return name;
|
return userName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(String name) {
|
public void setUserName(String userName) {
|
||||||
this.name = name;
|
this.userName = userName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getEmail() {
|
public String getUserEmail() {
|
||||||
return email;
|
return userEmail;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEmail(String email) {
|
public void setUserEmail(String userEmail) {
|
||||||
this.email = email;
|
this.userEmail = userEmail;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getPhone() {
|
public String getUserPhone() {
|
||||||
return phone;
|
return userPhone;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPhone(String phone) {
|
public void setUserPhone(String userPhone) {
|
||||||
this.phone = phone;
|
this.userPhone = userPhone;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,11 +10,11 @@ import com.sucstepsoft.cm_utils.constant.PathConfig;
|
|||||||
public class BaseUrlApi {
|
public class BaseUrlApi {
|
||||||
|
|
||||||
// public static final String IP = "http://192.168.0.113:7001/usercenter/";/* 测试IP */
|
// public static final String IP = "http://192.168.0.113:7001/usercenter/";/* 测试IP */
|
||||||
public static final String IP = "http://49.233.36.36:58099/xzszwhy/";/* 测试IP */
|
public static final String IP = "http://121.36.71.250:58050/xzszwhy/";/* 测试IP */
|
||||||
// public static final String IP = "https://www.wgink.ink/usercenter/";/* 正式IP */
|
// public static final String IP = "https://www.wgink.ink/usercenter/";/* 正式IP */
|
||||||
// public static final String IP = "https://www.xzszwhy.cn/usercenter/";/* 正式IP */
|
// public static final String IP = "https://www.xzszwhy.cn/usercenter/";/* 正式IP */
|
||||||
// public static final String BASE_SYSTEM_IP = "http://192.168.0.115:8082/";
|
// public static final String BASE_SYSTEM_IP = "http://192.168.0.115:8082/";
|
||||||
public static final String BASE_SYSTEM_IP = "http://49.233.36.36:58099/xzszwhy/";
|
public static final String BASE_SYSTEM_IP = "http://121.36.71.250:58050/xzszwhy/";
|
||||||
// public static final String BASE_SYSTEM_IP = "https://www.xzszwhy.cn/";
|
// public static final String BASE_SYSTEM_IP = "https://www.xzszwhy.cn/";
|
||||||
// public static final String IP = "http://192.168.0.113:7001/usercenter/";/* 测试IP */
|
// public static final String IP = "http://192.168.0.113:7001/usercenter/";/* 测试IP */
|
||||||
public static final String PROJECT_NAME = "app/";
|
public static final String PROJECT_NAME = "app/";
|
||||||
|
@ -77,7 +77,8 @@ public interface BaseApiService {
|
|||||||
*/
|
*/
|
||||||
@Headers({"Content-Type: application/json", "Accept: application/json"})
|
@Headers({"Content-Type: application/json", "Accept: application/json"})
|
||||||
@GET("appversion/getappversionnumber/{appVersionId}")
|
@GET("appversion/getappversionnumber/{appVersionId}")
|
||||||
Observable<VersionBean> doCheckAppVersionByToken(@Path("appVersionId") String appVersionId, @Header("token") String token);
|
Observable<VersionBean> doCheckAppVersionByToken(@Path("appVersionId") String appVersionId,
|
||||||
|
@Header("token") String token);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取App版本
|
* 获取App版本
|
||||||
@ -85,7 +86,7 @@ public interface BaseApiService {
|
|||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@Headers({"Content-Type: application/json", "Accept: application/json"})
|
@Headers({"Content-Type: application/json", "Accept: application/json", "is_need_area:false"})
|
||||||
@GET("app/appversion/get-number/{appVersionId}")
|
@GET("app/appversion/get-number/{appVersionId}")
|
||||||
Observable<VersionBean> doCheckAppVersion(@Path("appVersionId") String appVersionId);
|
Observable<VersionBean> doCheckAppVersion(@Path("appVersionId") String appVersionId);
|
||||||
|
|
||||||
@ -106,12 +107,14 @@ public interface BaseApiService {
|
|||||||
@Headers({"base_url_name:social"})
|
@Headers({"base_url_name:social"})
|
||||||
@Multipart
|
@Multipart
|
||||||
@POST("app/file/uploadimage")
|
@POST("app/file/uploadimage")
|
||||||
Observable<BaseSuccessBean> uploadImageToSocialByMap(@PartMap Map<String, RequestBody> params, @Header("token") String token);
|
Observable<BaseSuccessBean> uploadImageToSocialByMap(@PartMap Map<String, RequestBody> params,
|
||||||
|
@Header("token") String token);
|
||||||
|
|
||||||
@Headers({"base_url_name:social"})
|
@Headers({"base_url_name:social"})
|
||||||
@Multipart
|
@Multipart
|
||||||
@POST("app/file/uploadimage")
|
@POST("app/file/uploadimage")
|
||||||
Observable<BaseSuccessBean> uploadImageToSocialBySingle(@Part MultipartBody.Part file, @Header("token") String token);
|
Observable<BaseSuccessBean> uploadImageToSocialBySingle(@Part MultipartBody.Part file,
|
||||||
|
@Header("token") String token);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 上传图片文件
|
* 上传图片文件
|
||||||
@ -192,7 +195,8 @@ public interface BaseApiService {
|
|||||||
*/
|
*/
|
||||||
@Headers({"Content-Type:application/json", "Accept:application/json"})
|
@Headers({"Content-Type:application/json", "Accept:application/json"})
|
||||||
@GET("app/data/listbyparentid/{dataParentId}")
|
@GET("app/data/listbyparentid/{dataParentId}")
|
||||||
Observable<List<BaseDictionaryBean>> getSystemDictionary(@Path("dataParentId") String id, @Header("token") String token);
|
Observable<List<BaseDictionaryBean>> getSystemDictionary(@Path("dataParentId") String id,
|
||||||
|
@Header("token") String token);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户注册
|
* 用户注册
|
||||||
@ -221,7 +225,8 @@ public interface BaseApiService {
|
|||||||
*/
|
*/
|
||||||
@Headers({"Content-Type:application/json", "Accept:application/json"})
|
@Headers({"Content-Type:application/json", "Accept:application/json"})
|
||||||
@PUT("app/base/userexpand/update-byuserid/{userId}")
|
@PUT("app/base/userexpand/update-byuserid/{userId}")
|
||||||
Observable<BaseSuccessBean> editUserInfo(@Path("userId") String id, @Body RequestBody body, @Header("token") String token);
|
Observable<BaseSuccessBean> editUserInfo(@Path("userId") String id, @Body RequestBody body,
|
||||||
|
@Header("token") String token);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取用户拓展信息
|
* 获取用户拓展信息
|
||||||
@ -248,7 +253,8 @@ public interface BaseApiService {
|
|||||||
*/
|
*/
|
||||||
@Headers({"Content-Type:application/json", "Accept:application/json"})
|
@Headers({"Content-Type:application/json", "Accept:application/json"})
|
||||||
@PUT("app/user/update-phone-username/{phone}")
|
@PUT("app/user/update-phone-username/{phone}")
|
||||||
Observable<BaseSuccessBean> doChangePhone(@Body RequestBody body, @Path("phone") String phone, @Header("token") String token);
|
Observable<BaseSuccessBean> doChangePhone(@Body RequestBody body, @Path("phone") String phone,
|
||||||
|
@Header("token") String token);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改密码
|
* 修改密码
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
package com.sucstepsoft.cm_utils.core.retrofit_net.conver;
|
package com.sucstepsoft.cm_utils.core.retrofit_net.conver;
|
||||||
|
|
||||||
import android.text.TextUtils;
|
|
||||||
|
|
||||||
import com.sucstepsoft.cm_utils.constant.PathConfig;
|
import com.sucstepsoft.cm_utils.constant.PathConfig;
|
||||||
import com.sucstepsoft.cm_utils.utils.LogUtils;
|
|
||||||
import com.sucstepsoft.cm_utils.utils.UserInfoSPUtils;
|
import com.sucstepsoft.cm_utils.utils.UserInfoSPUtils;
|
||||||
import com.sucstepsoft.cm_utils.utils.UserLgUtils;
|
import com.sucstepsoft.cm_utils.utils.UserLgUtils;
|
||||||
|
|
||||||
@ -11,11 +8,8 @@ import java.io.IOException;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import okhttp3.FormBody;
|
|
||||||
import okhttp3.HttpUrl;
|
import okhttp3.HttpUrl;
|
||||||
import okhttp3.Interceptor;
|
import okhttp3.Interceptor;
|
||||||
import okhttp3.MediaType;
|
|
||||||
import okhttp3.MultipartBody;
|
|
||||||
import okhttp3.Request;
|
import okhttp3.Request;
|
||||||
import okhttp3.RequestBody;
|
import okhttp3.RequestBody;
|
||||||
import okio.Buffer;
|
import okio.Buffer;
|
||||||
@ -37,105 +31,23 @@ public class AreaInterceptor implements Interceptor {
|
|||||||
}
|
}
|
||||||
String name = "area" + cityLevel;
|
String name = "area" + cityLevel;
|
||||||
String areaId = UserLgUtils.getCurrentCityCode();
|
String areaId = UserLgUtils.getCurrentCityCode();
|
||||||
if (TextUtils.isEmpty(areaId)) {
|
// if (TextUtils.isEmpty(areaId)) {
|
||||||
areaId = PathConfig.CITY_DEFAULT_CODE;
|
// areaId = PathConfig.CITY_DEFAULT_CODE;
|
||||||
}
|
|
||||||
HttpUrl modifiedUrl = originalRequest.url().newBuilder()
|
|
||||||
.addQueryParameter(name, areaId)
|
|
||||||
.build();
|
|
||||||
request = originalRequest.newBuilder().url(modifiedUrl).build();
|
|
||||||
return chain.proceed(request);
|
|
||||||
// Request oldRequest = chain.request();
|
|
||||||
// Request.Builder newRequestBuild = null;
|
|
||||||
// String method = oldRequest.method();
|
|
||||||
// String postBodyString = "";
|
|
||||||
//
|
|
||||||
// if ("POST".equals(method)) {
|
|
||||||
// RequestBody oldBody = oldRequest.body();
|
|
||||||
// if (oldBody instanceof FormBody) {
|
|
||||||
// LogUtils.e("FormBody");
|
|
||||||
// FormBody.Builder formBodyBuilder = new FormBody.Builder();
|
|
||||||
|
|
||||||
// formBodyBuilder.add(name, areaId);
|
|
||||||
// newRequestBuild = oldRequest.newBuilder();
|
|
||||||
// RequestBody formBody = formBodyBuilder.build();
|
|
||||||
// postBodyString = bodyToString(oldRequest.body());
|
|
||||||
// postBodyString += ((postBodyString.length() > 0) ? "&" : "") + bodyToString(formBody);
|
|
||||||
// newRequestBuild.post(RequestBody.create(MediaType.parse("application/json;charset=UTF-8"), postBodyString));
|
|
||||||
// } else if (oldBody instanceof MultipartBody) {
|
|
||||||
// LogUtils.e("MultipartBody");
|
|
||||||
// MultipartBody oldBodyMultipart = (MultipartBody) oldBody;
|
|
||||||
// List<MultipartBody.Part> oldPartList = oldBodyMultipart.parts();
|
|
||||||
// MultipartBody.Builder builder = new MultipartBody.Builder();
|
|
||||||
// builder.setType(MultipartBody.FORM);
|
|
||||||
// int cityLevel = UserLgUtils.getCityLevel();
|
|
||||||
// if (cityLevel == -1) {
|
|
||||||
// cityLevel = PathConfig.CITY_DEFAULT_LEVEL;
|
|
||||||
// }
|
|
||||||
// String name = "area" + cityLevel;
|
|
||||||
// RequestBody requestBody1 = RequestBody.create(MediaType.parse("text/plain"), name);
|
|
||||||
// String areaId = UserLgUtils.getCurrentCityCode();
|
|
||||||
// if (TextUtils.isEmpty(areaId)) {
|
|
||||||
// areaId = PathConfig.CITY_DEFAULT_CODE;
|
|
||||||
// }
|
|
||||||
// MultipartBody.Part partBody = MultipartBody.Part.createFormData(name, areaId, requestBody1);
|
|
||||||
// for (MultipartBody.Part part : oldPartList) {
|
|
||||||
// builder.addPart(part);
|
|
||||||
// postBodyString += (bodyToString(part.body()) + "\n");
|
|
||||||
// }
|
|
||||||
// postBodyString += (bodyToString(requestBody1) + "\n");
|
|
||||||
// builder.addPart(partBody);
|
|
||||||
// newRequestBuild = oldRequest.newBuilder();
|
|
||||||
// newRequestBuild.post(builder.build());
|
|
||||||
// } else {
|
|
||||||
// LogUtils.e("else");
|
|
||||||
// newRequestBuild = oldRequest.newBuilder();
|
|
||||||
// FormBody.Builder formBodyBuilder = new FormBody.Builder();
|
|
||||||
// formBodyBuilder.addEncoded("Content-Type", "application/json;charset=UTF-8");
|
|
||||||
// int cityLevel = UserLgUtils.getCityLevel();
|
|
||||||
// if (cityLevel == -1) {
|
|
||||||
// cityLevel = PathConfig.CITY_DEFAULT_LEVEL;
|
|
||||||
// }
|
|
||||||
// String name = "area" + cityLevel;
|
|
||||||
// String areaId = UserLgUtils.getCurrentCityCode();
|
|
||||||
// if (TextUtils.isEmpty(areaId)) {
|
|
||||||
// areaId = PathConfig.CITY_DEFAULT_CODE;
|
|
||||||
// }
|
|
||||||
// FormBody token = formBodyBuilder.add(name, areaId).build();
|
|
||||||
// newRequestBuild.post(token);
|
|
||||||
// }
|
|
||||||
// } else {
|
|
||||||
// // 添加新的参数
|
|
||||||
// int cityLevel = UserLgUtils.getCityLevel();
|
|
||||||
// if (cityLevel == -1) {
|
|
||||||
// cityLevel = PathConfig.CITY_DEFAULT_LEVEL;
|
|
||||||
// }
|
|
||||||
// String name = "area" + cityLevel;
|
|
||||||
// String areaId = UserLgUtils.getCurrentCityCode();
|
|
||||||
// if (TextUtils.isEmpty(areaId)) {
|
|
||||||
// areaId = PathConfig.CITY_DEFAULT_CODE;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// HttpUrl.Builder commonParamsUrlBuilder = oldRequest.url()
|
|
||||||
// .newBuilder()
|
|
||||||
// .scheme(oldRequest.url().scheme())
|
|
||||||
// .host(oldRequest.url().host())
|
|
||||||
// .addQueryParameter(name, areaId);
|
|
||||||
// newRequestBuild = oldRequest.newBuilder()
|
|
||||||
// .method(oldRequest.method(), oldRequest.body())
|
|
||||||
// .url(commonParamsUrlBuilder.build());
|
|
||||||
// }
|
// }
|
||||||
// Request newRequest = newRequestBuild
|
// String cityId = UserLgUtils.getCityId();
|
||||||
// .addHeader("Accept", "application/json")
|
//判断是否需要添加
|
||||||
// .addHeader("Accept-Language", "zh")
|
List<String> baseUrlName = originalRequest.headers("is_need_area");
|
||||||
// .build();
|
if (baseUrlName.size() <= 0) {
|
||||||
//
|
//需要添加
|
||||||
// okhttp3.Response response = chain.proceed(newRequest);
|
HttpUrl modifiedUrl = originalRequest.url().newBuilder()
|
||||||
// MediaType mediaType = response.body().contentType();
|
.addPathSegment(areaId)
|
||||||
// String content = response.body().string();
|
.build();
|
||||||
// return response.newBuilder()
|
request = originalRequest.newBuilder().url(modifiedUrl).build();
|
||||||
// .body(okhttp3.ResponseBody.create(mediaType, content))
|
} else {
|
||||||
// .build();
|
request = originalRequest;
|
||||||
|
}
|
||||||
|
return chain.proceed(request);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String bodyToString(final RequestBody request) {
|
private static String bodyToString(final RequestBody request) {
|
||||||
@ -155,17 +67,6 @@ public class AreaInterceptor implements Interceptor {
|
|||||||
private HashMap<String, String> buildPublicParams() {
|
private HashMap<String, String> buildPublicParams() {
|
||||||
HashMap<String, String> params = new HashMap<>();
|
HashMap<String, String> params = new HashMap<>();
|
||||||
params.put("token", UserInfoSPUtils.getToken());
|
params.put("token", UserInfoSPUtils.getToken());
|
||||||
// try {
|
|
||||||
// params.put("strName", BluetoothAdapter.getDefaultAdapter().getName() == null ? "" : BluetoothAdapter.getDefaultAdapter().getName());//手机系统版名称
|
|
||||||
// params.put("strSysName", "Android");//手机系统版名称
|
|
||||||
// params.put("strSysVersion", android.os.Build.VERSION.RELEASE == null ? "" : android.os.Build.VERSION.RELEASE);//手机系统版本号
|
|
||||||
// params.put("phoneModel", android.os.Build.MODEL == null ? "" : android.os.Build.MODEL);//手机型号
|
|
||||||
// params.put("strAppName", AppUtils.getAppName());//应用名称
|
|
||||||
// params.put("strAppVersion", AppUtils.getAppVersionName());//应用版本名称
|
|
||||||
// params.put("strAppBuild", String.valueOf(AppUtils.getAppVersionCode()));//应用版本号
|
|
||||||
// } catch (Exception e) {
|
|
||||||
// LogUtils.e("Public parameter acquisition failed");
|
|
||||||
// }
|
|
||||||
return params;
|
return params;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
package com.sucstepsoft.cm_utils.utils;
|
package com.sucstepsoft.cm_utils.utils;
|
||||||
|
|
||||||
import com.nightonke.boommenu.Animation.BoomEnum;
|
|
||||||
|
|
||||||
public class UserLgUtils {
|
public class UserLgUtils {
|
||||||
//
|
//
|
||||||
// private String id;
|
// private String id;
|
||||||
@ -195,4 +193,28 @@ public class UserLgUtils {
|
|||||||
public static void setCityLevel(int level) {
|
public static void setCityLevel(int level) {
|
||||||
SPUtils.getInstance(SP_USER_INFO).put("cityLevel", level);
|
SPUtils.getInstance(SP_USER_INFO).put("cityLevel", level);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void setAppName(String appName) {
|
||||||
|
SPUtils.getInstance(SP_USER_INFO).put("appName", appName);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getAppName() {
|
||||||
|
return SPUtils.getInstance(SP_USER_INFO).getString("appName");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getCityCode() {
|
||||||
|
return SPUtils.getInstance(SP_USER_INFO).getString("cityCode");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void setCityCode(String code) {
|
||||||
|
SPUtils.getInstance(SP_USER_INFO).put("cityCode", code);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getCityId() {
|
||||||
|
return SPUtils.getInstance(SP_USER_INFO).getString("cityId");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void setCityId(String code) {
|
||||||
|
SPUtils.getInstance(SP_USER_INFO).put("cityId", code);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,7 @@ public interface ApiActivity {
|
|||||||
* @param id
|
* @param id
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@Headers({"base_url_name:activity", "Content-Type:application/json", "Accept:application/json"})
|
@Headers({"base_url_name:activity", "Content-Type:application/json", "Accept:application/json","is_need_area:false"})
|
||||||
@GET("app/dictionaryself/listdictionarybyparentidrelease/{dictionaryParentId}")
|
@GET("app/dictionaryself/listdictionarybyparentidrelease/{dictionaryParentId}")
|
||||||
Observable<List<BaseDictionaryBean>> getActivityTypeList(@Path("dictionaryParentId") String id);
|
Observable<List<BaseDictionaryBean>> getActivityTypeList(@Path("dictionaryParentId") String id);
|
||||||
|
|
||||||
|
@ -331,7 +331,7 @@ public interface CulturalApi {
|
|||||||
* 直播回放列表
|
* 直播回放列表
|
||||||
* http://192.168.0.104:8084/live/
|
* http://192.168.0.104:8084/live/
|
||||||
*/
|
*/
|
||||||
@Headers({"base_url_name:live", "Content-Type:application/json", "Accept:application/json"})
|
@Headers({"base_url_name:live", "Content-Type:application/json", "Accept:application/json","is_need_area:false"})
|
||||||
@GET("app/liveplan/listpageliveplanrelease")
|
@GET("app/liveplan/listpageliveplanrelease")
|
||||||
Observable<CulturalLiveBean> getLiveRecord(@Query("page") String page);
|
Observable<CulturalLiveBean> getLiveRecord(@Query("page") String page);
|
||||||
|
|
||||||
@ -339,7 +339,7 @@ public interface CulturalApi {
|
|||||||
* 直播详情
|
* 直播详情
|
||||||
* http://192.168.0.104:8084/live/app/liveplan/listpageliveplanrelease
|
* http://192.168.0.104:8084/live/app/liveplan/listpageliveplanrelease
|
||||||
*/
|
*/
|
||||||
@Headers({"base_url_name:live", "Content-Type:application/json", "Accept:application/json"})
|
@Headers({"base_url_name:live", "Content-Type:application/json", "Accept:application/json" ,"is_need_area:false"})
|
||||||
@GET("app/liveplan/getliveplanbyidrelease/{livePlanId}")
|
@GET("app/liveplan/getliveplanbyidrelease/{livePlanId}")
|
||||||
Observable<CulturalLiveDetailBean> getLiveDetail(@Path("livePlanId") String id);
|
Observable<CulturalLiveDetailBean> getLiveDetail(@Path("livePlanId") String id);
|
||||||
|
|
||||||
@ -347,7 +347,7 @@ public interface CulturalApi {
|
|||||||
* 直播回放文件
|
* 直播回放文件
|
||||||
* GET /app/liverecord/listpageliverecordrelease/{planId}
|
* GET /app/liverecord/listpageliverecordrelease/{planId}
|
||||||
*/
|
*/
|
||||||
@Headers({"base_url_name:live", "Content-Type:application/json", "Accept:application/json"})
|
@Headers({"base_url_name:live", "Content-Type:application/json", "Accept:application/json" ,"is_need_area:false"})
|
||||||
@GET("app/liverecord/listpageliverecordrelease/{planId}")
|
@GET("app/liverecord/listpageliverecordrelease/{planId}")
|
||||||
Observable<LiveFilesBean> getLiveFiles(@Path("planId") String id, @Query("page") String page);
|
Observable<LiveFilesBean> getLiveFiles(@Path("planId") String id, @Query("page") String page);
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ public class MainActivity extends BaseActivity {
|
|||||||
@Override
|
@Override
|
||||||
public void initData() {
|
public void initData() {
|
||||||
mBind = ButterKnife.bind(this);
|
mBind = ButterKnife.bind(this);
|
||||||
mTvBaseTitle.setText("日喀则市数字文化云");
|
mTvBaseTitle.setText(UserLgUtils.getAppName());
|
||||||
refreshView(STATE_LOAD_SUCCESS);
|
refreshView(STATE_LOAD_SUCCESS);
|
||||||
mIbBack.setVisibility(View.GONE);
|
mIbBack.setVisibility(View.GONE);
|
||||||
mRlTitleBar1.setVisibility(View.VISIBLE);
|
mRlTitleBar1.setVisibility(View.VISIBLE);
|
||||||
@ -100,6 +100,7 @@ public class MainActivity extends BaseActivity {
|
|||||||
}
|
}
|
||||||
mVpContent.setAdapter(new MyFragmentPageAdapter(this));
|
mVpContent.setAdapter(new MyFragmentPageAdapter(this));
|
||||||
mVpContent.setUserInputEnabled(false);
|
mVpContent.setUserInputEnabled(false);
|
||||||
|
|
||||||
//TODO 系统字体
|
//TODO 系统字体
|
||||||
// mBnv.setTypeface(Typeface.createFromAsset(mActivity.getAssets(), "fonts/zhangti.TTF"));
|
// mBnv.setTypeface(Typeface.createFromAsset(mActivity.getAssets(), "fonts/zhangti.TTF"));
|
||||||
mBnv.setTypeface(Typeface.DEFAULT);
|
mBnv.setTypeface(Typeface.DEFAULT);
|
||||||
@ -117,10 +118,10 @@ public class MainActivity extends BaseActivity {
|
|||||||
mRlTitleBar1.setVisibility(View.VISIBLE);
|
mRlTitleBar1.setVisibility(View.VISIBLE);
|
||||||
mIvInto.setVisibility(View.GONE);
|
mIvInto.setVisibility(View.GONE);
|
||||||
mVpContent.setCurrentItem(0, false);
|
mVpContent.setCurrentItem(0, false);
|
||||||
mTvBaseTitle.setText("日喀则市数字文化云");
|
mTvBaseTitle.setText(UserLgUtils.getAppName());
|
||||||
mTvAppBack.setVisibility(View.VISIBLE);
|
mTvAppBack.setVisibility(View.GONE);
|
||||||
String city = TextUtils.isEmpty(UserLgUtils.getCurrentCity()) ? "地区选择" : UserLgUtils.getCurrentCity();
|
// String city = TextUtils.isEmpty(UserLgUtils.getCurrentCity()) ? "地区选择" : UserLgUtils.getCurrentCity();
|
||||||
mTvAppBack.setText(city);
|
// mTvAppBack.setText(city);
|
||||||
return true;
|
return true;
|
||||||
} else if (itemId == R.id.tab_activity) {
|
} else if (itemId == R.id.tab_activity) {
|
||||||
ImmersionBar.with(this)
|
ImmersionBar.with(this)
|
||||||
@ -191,12 +192,12 @@ public class MainActivity extends BaseActivity {
|
|||||||
});
|
});
|
||||||
mRlTitleBar.setVisibility(View.VISIBLE);
|
mRlTitleBar.setVisibility(View.VISIBLE);
|
||||||
mRlTitleBar1.setVisibility(View.VISIBLE);
|
mRlTitleBar1.setVisibility(View.VISIBLE);
|
||||||
mTvAppBack.setVisibility(View.VISIBLE);
|
mTvAppBack.setVisibility(View.GONE);
|
||||||
String city = TextUtils.isEmpty(UserLgUtils.getCurrentCity()) ? "地区选择" : UserLgUtils.getCurrentCity();
|
// String city = TextUtils.isEmpty(UserLgUtils.getCurrentCity()) ? "地区选择" : UserLgUtils.getCurrentCity();
|
||||||
mTvAppBack.setText(city);
|
// mTvAppBack.setText(city);
|
||||||
mTvAppBack.setOnClickListener(v -> ARouter.getInstance()
|
// mTvAppBack.setOnClickListener(v -> ARouter.getInstance()
|
||||||
.build(PathConfig.PATH_MODULE_MAIN_CHOOSE_CITY)
|
// .build(PathConfig.PATH_MODULE_MAIN_CHOOSE_CITY)
|
||||||
.navigation(mActivity, 1234));
|
// .navigation(mActivity, 1234));
|
||||||
doCheckPermission();
|
doCheckPermission();
|
||||||
checkAppVersion();
|
checkAppVersion();
|
||||||
getUserInfo();
|
getUserInfo();
|
||||||
|
@ -9,8 +9,8 @@ import com.gyf.immersionbar.ImmersionBar;
|
|||||||
import com.sucstepsoft.cm_utils.constant.PathConfig;
|
import com.sucstepsoft.cm_utils.constant.PathConfig;
|
||||||
import com.sucstepsoft.cm_utils.constant.PermissionConstants;
|
import com.sucstepsoft.cm_utils.constant.PermissionConstants;
|
||||||
import com.sucstepsoft.cm_utils.core.widget.base.BaseActivity;
|
import com.sucstepsoft.cm_utils.core.widget.base.BaseActivity;
|
||||||
import com.sucstepsoft.cm_utils.utils.LogUtils;
|
|
||||||
import com.sucstepsoft.cm_utils.utils.PermissionUtils;
|
import com.sucstepsoft.cm_utils.utils.PermissionUtils;
|
||||||
|
import com.sucstepsoft.cm_utils.utils.UserLgUtils;
|
||||||
import com.sucstepsoft.cm_utils.utils.toast.ToastUtils;
|
import com.sucstepsoft.cm_utils.utils.toast.ToastUtils;
|
||||||
import com.tengshisoft.mudulemain.R;
|
import com.tengshisoft.mudulemain.R;
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ public class SplashActivity extends BaseActivity {
|
|||||||
refreshView(STATE_LOAD_SUCCESS);
|
refreshView(STATE_LOAD_SUCCESS);
|
||||||
ImmersionBar.with(this).init();
|
ImmersionBar.with(this).init();
|
||||||
mRlTitleBar1.setVisibility(View.GONE);
|
mRlTitleBar1.setVisibility(View.GONE);
|
||||||
|
getCityCode();
|
||||||
PermissionUtils.permission(PermissionConstants.STORAGE, PermissionConstants.LOCATION, PermissionConstants.PHONE)
|
PermissionUtils.permission(PermissionConstants.STORAGE, PermissionConstants.LOCATION, PermissionConstants.PHONE)
|
||||||
.callback(new PermissionUtils.SimpleCallback() {
|
.callback(new PermissionUtils.SimpleCallback() {
|
||||||
@Override
|
@Override
|
||||||
@ -84,16 +84,22 @@ public class SplashActivity extends BaseActivity {
|
|||||||
}).request();
|
}).request();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取城市代码
|
* 获取城市代码
|
||||||
*/
|
*/
|
||||||
private void getCityCode() {
|
private void getCityCode() {
|
||||||
String cityCode = "";
|
String cityCode = "";
|
||||||
|
String cityId = "";
|
||||||
try {
|
try {
|
||||||
ApplicationInfo info = getPackageManager().getApplicationInfo(getPackageName(),
|
ApplicationInfo info = getPackageManager().getApplicationInfo(getPackageName(),
|
||||||
PackageManager.GET_META_DATA);
|
PackageManager.GET_META_DATA);
|
||||||
cityCode = String.valueOf(info.metaData.get("CITY_CODE"));
|
cityCode = String.valueOf(info.metaData.get("CITY_CODE"));
|
||||||
LogUtils.e("设置的城市代码====" + cityCode);
|
cityId = String.valueOf(info.metaData.get("CITY_ID"));
|
||||||
|
UserLgUtils.setCityCode(cityCode);
|
||||||
|
UserLgUtils.setCityId(cityId);
|
||||||
|
String appName = String.valueOf(info.metaData.get("APP_NAME"));
|
||||||
|
UserLgUtils.setAppName(appName);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,11 @@ import android.widget.LinearLayout;
|
|||||||
import android.widget.RelativeLayout;
|
import android.widget.RelativeLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import androidx.core.content.FileProvider;
|
||||||
|
import androidx.core.widget.NestedScrollView;
|
||||||
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||||
import com.alibaba.android.arouter.launcher.ARouter;
|
import com.alibaba.android.arouter.launcher.ARouter;
|
||||||
import com.bumptech.glide.Glide;
|
import com.bumptech.glide.Glide;
|
||||||
@ -43,6 +48,7 @@ import com.sucstepsoft.cm_utils.core.widget.views.ButtomDialogView;
|
|||||||
import com.sucstepsoft.cm_utils.core.widget.views.ItemSplitDivider;
|
import com.sucstepsoft.cm_utils.core.widget.views.ItemSplitDivider;
|
||||||
import com.sucstepsoft.cm_utils.core.widget.views.NestedScrollWebView;
|
import com.sucstepsoft.cm_utils.core.widget.views.NestedScrollWebView;
|
||||||
import com.sucstepsoft.cm_utils.utils.ExceptionHandler;
|
import com.sucstepsoft.cm_utils.utils.ExceptionHandler;
|
||||||
|
import com.sucstepsoft.cm_utils.utils.FileUtils;
|
||||||
import com.sucstepsoft.cm_utils.utils.LogUtils;
|
import com.sucstepsoft.cm_utils.utils.LogUtils;
|
||||||
import com.sucstepsoft.cm_utils.utils.ProiderUtil;
|
import com.sucstepsoft.cm_utils.utils.ProiderUtil;
|
||||||
import com.sucstepsoft.cm_utils.utils.TimeUtils;
|
import com.sucstepsoft.cm_utils.utils.TimeUtils;
|
||||||
@ -65,10 +71,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import androidx.core.content.FileProvider;
|
|
||||||
import androidx.core.widget.NestedScrollView;
|
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
|
||||||
import butterknife.BindView;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
import butterknife.Unbinder;
|
import butterknife.Unbinder;
|
||||||
@ -158,40 +160,42 @@ public class NewsDetailActivity extends BaseActivity {
|
|||||||
mUrl = getIntent().getStringExtra("url");
|
mUrl = getIntent().getStringExtra("url");
|
||||||
mTitle = getIntent().getStringExtra("title");
|
mTitle = getIntent().getStringExtra("title");
|
||||||
mPhoto = getIntent().getStringExtra("photo");
|
mPhoto = getIntent().getStringExtra("photo");
|
||||||
Observable.create((ObservableOnSubscribe<File>) emitter -> {
|
if (!TextUtils.isEmpty(mPhoto) && !mPhoto.endsWith("/")) {
|
||||||
emitter.onNext(Glide.with(mActivity)
|
Observable.create((ObservableOnSubscribe<File>) emitter -> {
|
||||||
.asFile()
|
emitter.onNext(Glide.with(mActivity)
|
||||||
.load(mPhoto)
|
.asFile()
|
||||||
.submit(300, 300)
|
.load(mPhoto)
|
||||||
.get());
|
.submit(300, 300)
|
||||||
emitter.onComplete();
|
.get());
|
||||||
}).subscribeOn(Schedulers.io())
|
emitter.onComplete();
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
}).subscribeOn(Schedulers.io())
|
||||||
.subscribe(new Observer<File>() {
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
@Override
|
.subscribe(new Observer<File>() {
|
||||||
public void onSubscribe(Disposable d) {
|
@Override
|
||||||
|
public void onSubscribe(Disposable d) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onNext(File file) {
|
public void onNext(File file) {
|
||||||
|
|
||||||
// File externalFilesDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);
|
File externalFilesDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);
|
||||||
// String fileName = System.currentTimeMillis() + ".jpg";
|
String fileName = System.currentTimeMillis() + ".jpg";
|
||||||
// mDestFile = new File(externalFilesDir, fileName);
|
mDestFile = new File(externalFilesDir, fileName);
|
||||||
// FileUtils.copyFile(file, mDestFile);
|
FileUtils.copyFile(file, mDestFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(Throwable e) {
|
public void onError(Throwable e) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onComplete() {
|
public void onComplete() {
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
//是否可以评论
|
//是否可以评论
|
||||||
mIsComment = getIntent().getStringExtra("isComment");
|
mIsComment = getIntent().getStringExtra("isComment");
|
||||||
if ("0".equals(mIsComment)) {
|
if ("0".equals(mIsComment)) {
|
||||||
@ -256,7 +260,7 @@ public class NewsDetailActivity extends BaseActivity {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean shouldOverrideUrlLoading(WebView view, String url) {
|
public boolean shouldOverrideUrlLoading(WebView view, String url) {
|
||||||
if (url.contains(BaseUrlApi.BASE_SYSTEM_IP+"news/route/file/download/true")) {
|
if (url.contains(BaseUrlApi.BASE_SYSTEM_IP + "news/route/file/download/true")) {
|
||||||
//TODO 数图资源
|
//TODO 数图资源
|
||||||
ARouter.getInstance()
|
ARouter.getInstance()
|
||||||
.build(PathConfig.PATH_MODULE_MAIN_NEWS_PDF)
|
.build(PathConfig.PATH_MODULE_MAIN_NEWS_PDF)
|
||||||
@ -285,7 +289,8 @@ public class NewsDetailActivity extends BaseActivity {
|
|||||||
});
|
});
|
||||||
LinearLayoutManager manager = new LinearLayoutManager(mActivity, LinearLayoutManager.VERTICAL, false);
|
LinearLayoutManager manager = new LinearLayoutManager(mActivity, LinearLayoutManager.VERTICAL, false);
|
||||||
mRlvComment.setLayoutManager(manager);
|
mRlvComment.setLayoutManager(manager);
|
||||||
mRlvComment.addItemDecoration(new ItemSplitDivider(mActivity, LinearLayoutManager.VERTICAL, 1, Color.parseColor("#F2F2F2")));
|
mRlvComment.addItemDecoration(new ItemSplitDivider(mActivity, LinearLayoutManager.VERTICAL, 1,
|
||||||
|
Color.parseColor("#F2F2F2")));
|
||||||
mRlvComment.setAdapter(mAdapter);
|
mRlvComment.setAdapter(mAdapter);
|
||||||
mSrlContent.setEnableRefresh(false);
|
mSrlContent.setEnableRefresh(false);
|
||||||
mAdapter.addCommentListener(this::doCommentItem);
|
mAdapter.addCommentListener(this::doCommentItem);
|
||||||
@ -413,7 +418,8 @@ public class NewsDetailActivity extends BaseActivity {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(Platform platform, int i, int i1, Throwable throwable) {
|
public void onError(Platform platform, int i, int i1, Throwable throwable) {
|
||||||
if (!TextUtils.isEmpty(throwable.getMessage()) && throwable.getMessage().contains("not install app")) {
|
if (!TextUtils.isEmpty(throwable.getMessage()) && throwable.getMessage().contains("not install " +
|
||||||
|
"app")) {
|
||||||
String name = "微信";
|
String name = "微信";
|
||||||
if (type == 1) {
|
if (type == 1) {
|
||||||
name = "微信";
|
name = "微信";
|
||||||
@ -956,7 +962,8 @@ public class NewsDetailActivity extends BaseActivity {
|
|||||||
@Override
|
@Override
|
||||||
public void onSuccess(File file) {
|
public void onSuccess(File file) {
|
||||||
RequestBody requestFile = RequestBody.create(MediaType.parse("multipart/form-data"), file);
|
RequestBody requestFile = RequestBody.create(MediaType.parse("multipart/form-data"), file);
|
||||||
MultipartBody.Part body = MultipartBody.Part.createFormData("image", file.getName(), requestFile);
|
MultipartBody.Part body = MultipartBody.Part.createFormData("image", file.getName(),
|
||||||
|
requestFile);
|
||||||
RetrofitManager.getInstance()
|
RetrofitManager.getInstance()
|
||||||
.create(HomeApi.class)
|
.create(HomeApi.class)
|
||||||
.uploadImage(body, UserLgUtils.getToken())
|
.uploadImage(body, UserLgUtils.getToken())
|
||||||
|
@ -8,6 +8,11 @@ import android.widget.ImageView;
|
|||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
import androidx.recyclerview.widget.GridLayoutManager;
|
||||||
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||||
import com.alibaba.android.arouter.launcher.ARouter;
|
import com.alibaba.android.arouter.launcher.ARouter;
|
||||||
import com.ethanhua.skeleton.RecyclerViewSkeletonScreen;
|
import com.ethanhua.skeleton.RecyclerViewSkeletonScreen;
|
||||||
@ -47,10 +52,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
|
||||||
import androidx.recyclerview.widget.GridLayoutManager;
|
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
|
||||||
import butterknife.BindView;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
import butterknife.Unbinder;
|
import butterknife.Unbinder;
|
||||||
@ -115,12 +116,15 @@ public class HomeFragment extends BaseFragment {
|
|||||||
setStateView(STATE_SUCCESS);
|
setStateView(STATE_SUCCESS);
|
||||||
mSrlView.setEnableLoadMore(false);
|
mSrlView.setEnableLoadMore(false);
|
||||||
mSrlView.setEnableRefresh(false);
|
mSrlView.setEnableRefresh(false);
|
||||||
// mLlMainNews.setOnClickListener(v -> ARouter.getInstance().build(PathConfig.PATH_MODULE_MAIN_NEWS_MAIN).navigation());
|
// mLlMainNews.setOnClickListener(v -> ARouter.getInstance().build(PathConfig.PATH_MODULE_MAIN_NEWS_MAIN)
|
||||||
|
// .navigation());
|
||||||
mRlvMainNews.setLayoutManager(new LinearLayoutManager(mActivity, LinearLayoutManager.VERTICAL, false));
|
mRlvMainNews.setLayoutManager(new LinearLayoutManager(mActivity, LinearLayoutManager.VERTICAL, false));
|
||||||
mRlvMainNews.addItemDecoration(new ItemSplitDivider(mActivity, LinearLayoutManager.VERTICAL, 1, Color.parseColor("#F2F2F2")));
|
mRlvMainNews.addItemDecoration(new ItemSplitDivider(mActivity, LinearLayoutManager.VERTICAL, 1,
|
||||||
|
Color.parseColor("#F2F2F2")));
|
||||||
mRlvMainNews.setAdapter(mMAdapter);
|
mRlvMainNews.setAdapter(mMAdapter);
|
||||||
mRlvLives.setLayoutManager(new GridLayoutManager(mActivity, 2));
|
mRlvLives.setLayoutManager(new GridLayoutManager(mActivity, 2));
|
||||||
mRlvLives.addItemDecoration(new ItemSplitDivider(mActivity, LinearLayoutManager.VERTICAL, 1, Color.parseColor("#F2F2F2")));
|
mRlvLives.addItemDecoration(new ItemSplitDivider(mActivity, LinearLayoutManager.VERTICAL, 1,
|
||||||
|
Color.parseColor("#F2F2F2")));
|
||||||
mLiveAdapter = new LiveAdapter(mActivity, mLiveBeans);
|
mLiveAdapter = new LiveAdapter(mActivity, mLiveBeans);
|
||||||
mRlvLives.setAdapter(mLiveAdapter);
|
mRlvLives.setAdapter(mLiveAdapter);
|
||||||
mMAdapter = new NewsAdapter(mActivity, mNewsBeans);
|
mMAdapter = new NewsAdapter(mActivity, mNewsBeans);
|
||||||
@ -221,7 +225,8 @@ public class HomeFragment extends BaseFragment {
|
|||||||
});
|
});
|
||||||
// ARouter.getInstance().build(PathConfig.PATH_MODULE_MAIN_NEWS_MAIN).navigation()
|
// ARouter.getInstance().build(PathConfig.PATH_MODULE_MAIN_NEWS_MAIN).navigation()
|
||||||
// ARouter.getInstance().build(PathConfig.PATH_MODULE_CULTURAL_LIVE).navigation()
|
// ARouter.getInstance().build(PathConfig.PATH_MODULE_CULTURAL_LIVE).navigation()
|
||||||
// mLlLive.setOnClickListener(v -> ARouter.getInstance().build(PathConfig.PATH_MODULE_CULTURAL_LIVE).navigation());
|
// mLlLive.setOnClickListener(v -> ARouter.getInstance().build(PathConfig.PATH_MODULE_CULTURAL_LIVE)
|
||||||
|
// .navigation());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -395,7 +400,8 @@ public class HomeFragment extends BaseFragment {
|
|||||||
.withString("isComment", rowsBean.getNewsConfigComment())//是否可以评论
|
.withString("isComment", rowsBean.getNewsConfigComment())//是否可以评论
|
||||||
.withString("isCommentImg", rowsBean.getNewsConfigCommentImage())//评论是否可以上传图片
|
.withString("isCommentImg", rowsBean.getNewsConfigCommentImage())//评论是否可以上传图片
|
||||||
.withString("isCollect", rowsBean.getNewsContentCollectStatus())
|
.withString("isCollect", rowsBean.getNewsContentCollectStatus())
|
||||||
.withString("photo", BaseUrlApi.BASE_NEWS_IMG_URL + rowsBean.getNewsContentCoverList().get(0).getContentCoverId())
|
.withString("photo",
|
||||||
|
BaseUrlApi.BASE_NEWS_IMG_URL + rowsBean.getNewsContentCoverList().get(0).getContentCoverId())
|
||||||
.withString("title", rowsBean.getNewsContentTitle())
|
.withString("title", rowsBean.getNewsContentTitle())
|
||||||
.withInt("type", newsType)
|
.withInt("type", newsType)
|
||||||
.navigation();
|
.navigation();
|
||||||
@ -425,7 +431,8 @@ public class HomeFragment extends BaseFragment {
|
|||||||
BaseImageBean bean = new BaseImageBean();
|
BaseImageBean bean = new BaseImageBean();
|
||||||
bean.setName(rows.get(i).getNewsContentTitle());
|
bean.setName(rows.get(i).getNewsContentTitle());
|
||||||
bean.setId(rows.get(i).getNewsContentId());
|
bean.setId(rows.get(i).getNewsContentId());
|
||||||
List<NewsItemBean.RowsBean.NewsContentCoverListBean> newsContentCoverList = rows.get(i).getNewsContentCoverList();
|
List<NewsItemBean.RowsBean.NewsContentCoverListBean> newsContentCoverList =
|
||||||
|
rows.get(i).getNewsContentCoverList();
|
||||||
String newsContentCoverId = newsContentCoverList.get(0).getContentCoverId();
|
String newsContentCoverId = newsContentCoverList.get(0).getContentCoverId();
|
||||||
bean.setImgUrl(BaseUrlApi.BASE_NEWS_IMG_URL + newsContentCoverId);
|
bean.setImgUrl(BaseUrlApi.BASE_NEWS_IMG_URL + newsContentCoverId);
|
||||||
bean.setUrl(rowsBean.getTemplateRecordUrl());
|
bean.setUrl(rowsBean.getTemplateRecordUrl());
|
||||||
@ -461,7 +468,7 @@ public class HomeFragment extends BaseFragment {
|
|||||||
private void buildBannerData() {
|
private void buildBannerData() {
|
||||||
mBannerList.clear();
|
mBannerList.clear();
|
||||||
BaseImageBean bean = new BaseImageBean();
|
BaseImageBean bean = new BaseImageBean();
|
||||||
bean.setName("日喀则市数字文化云");
|
bean.setName(UserLgUtils.getAppName());
|
||||||
mBannerList.add(bean);
|
mBannerList.add(bean);
|
||||||
mBannerImageAdapter = new BannerImageTextAdapter(mBannerList);
|
mBannerImageAdapter = new BannerImageTextAdapter(mBannerList);
|
||||||
mBanner.setAdapter(mBannerImageAdapter);
|
mBanner.setAdapter(mBannerImageAdapter);
|
||||||
|
@ -243,7 +243,7 @@ public interface HomeApi {
|
|||||||
* 直播回放列表
|
* 直播回放列表
|
||||||
* http://192.168.0.104:8084/live/
|
* http://192.168.0.104:8084/live/
|
||||||
*/
|
*/
|
||||||
@Headers({"base_url_name:live", "Content-Type:application/json", "Accept:application/json"})
|
@Headers({"base_url_name:live", "Content-Type:application/json", "Accept:application/json","is_need_area:false"})
|
||||||
@GET("app/liveplan/listpageliveplanrelease")
|
@GET("app/liveplan/listpageliveplanrelease")
|
||||||
Observable<CulturalLiveBean> getLiveRecord(@Query("page") String page, @Query("rows") String rows);
|
Observable<CulturalLiveBean> getLiveRecord(@Query("page") String page, @Query("rows") String rows);
|
||||||
|
|
||||||
|
@ -181,9 +181,9 @@ public class MineInfoDetailActivity extends BaseActivity {
|
|||||||
private EditUserInfo buildConfirmUserInfo() {
|
private EditUserInfo buildConfirmUserInfo() {
|
||||||
EditUserInfo userInfo = new EditUserInfo();
|
EditUserInfo userInfo = new EditUserInfo();
|
||||||
String email = mEtEmail.getText().toString().trim();
|
String email = mEtEmail.getText().toString().trim();
|
||||||
userInfo.setEmail(email);
|
userInfo.setUserEmail(email);
|
||||||
String nickName = mEtName.getText().toString().trim();
|
String nickName = mEtName.getText().toString().trim();
|
||||||
userInfo.setName(nickName);
|
userInfo.setUserName(nickName);
|
||||||
List<EditUserInfo.UserInfosBean> infoBeans = new ArrayList<>();
|
List<EditUserInfo.UserInfosBean> infoBeans = new ArrayList<>();
|
||||||
if (mAllViews != null && mAllViews.size() > 0) {
|
if (mAllViews != null && mAllViews.size() > 0) {
|
||||||
LogUtils.e(mAllViews.size());
|
LogUtils.e(mAllViews.size());
|
||||||
|
@ -226,9 +226,9 @@ public class MineInfoEditActivity extends BaseActivity {
|
|||||||
private EditUserInfo buildConfirmUserInfo() {
|
private EditUserInfo buildConfirmUserInfo() {
|
||||||
EditUserInfo userInfo = new EditUserInfo();
|
EditUserInfo userInfo = new EditUserInfo();
|
||||||
String email = mEtEmail.getText().toString().trim();
|
String email = mEtEmail.getText().toString().trim();
|
||||||
userInfo.setEmail(email);
|
userInfo.setUserEmail(email);
|
||||||
String nickName = mEtName.getText().toString().trim();
|
String nickName = mEtName.getText().toString().trim();
|
||||||
userInfo.setName(nickName);
|
userInfo.setUserName(nickName);
|
||||||
List<EditUserInfo.UserInfosBean> infoBeans = new ArrayList<>();
|
List<EditUserInfo.UserInfosBean> infoBeans = new ArrayList<>();
|
||||||
if (mAllViews != null && mAllViews.size() > 0) {
|
if (mAllViews != null && mAllViews.size() > 0) {
|
||||||
LogUtils.e(mAllViews.size());
|
LogUtils.e(mAllViews.size());
|
||||||
|
@ -383,11 +383,11 @@ public class NewMineInfoEditActivity extends BaseActivity {
|
|||||||
private RequestBody buildConfirmUserInfo() {
|
private RequestBody buildConfirmUserInfo() {
|
||||||
SaveUserInfoBean bean = new SaveUserInfoBean();
|
SaveUserInfoBean bean = new SaveUserInfoBean();
|
||||||
String nickName = mEtNickName.getText().toString().trim();
|
String nickName = mEtNickName.getText().toString().trim();
|
||||||
bean.setName(nickName);
|
bean.setUserName(nickName);
|
||||||
String email = mEtEmail.getText().toString().trim();
|
String email = mEtEmail.getText().toString().trim();
|
||||||
bean.setEmail(email);
|
bean.setUserEmail(email);
|
||||||
String phone = mEtPhone.getText().toString().trim();
|
String phone = mEtPhone.getText().toString().trim();
|
||||||
bean.setPhone(phone);
|
bean.setUserPhone(phone);
|
||||||
String name = mEtName.getText().toString().trim();
|
String name = mEtName.getText().toString().trim();
|
||||||
bean.setUserRealName(name);
|
bean.setUserRealName(name);
|
||||||
if (mSelSex != null) {
|
if (mSelSex != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user