接口添加areaCode
This commit is contained in:
parent
c265d10083
commit
8dab7a7868
17
.idea/deploymentTargetDropDown.xml
Normal file
17
.idea/deploymentTargetDropDown.xml
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="deploymentTargetDropDown">
|
||||
<runningDeviceTargetSelectedWithDropDown>
|
||||
<Target>
|
||||
<type value="RUNNING_DEVICE_TARGET" />
|
||||
<deviceKey>
|
||||
<Key>
|
||||
<type value="SERIAL_NUMBER" />
|
||||
<value value="10HC690BJT0005G" />
|
||||
</Key>
|
||||
</deviceKey>
|
||||
</Target>
|
||||
</runningDeviceTargetSelectedWithDropDown>
|
||||
<timeTargetWasSelectedWithDropDown value="2023-02-20T02:01:43.345089Z" />
|
||||
</component>
|
||||
</project>
|
@ -54,7 +54,7 @@ android {
|
||||
dimension 'market'
|
||||
resValue "string", "APP_CHANNEL", "sangzhuzi"
|
||||
manifestPlaceholders = [CHANNEL_VALUE: "sangzhuzi",
|
||||
APP_LOGO : "@drawable/app_logoo",
|
||||
APP_LOGO : "@drawable/app_logo",
|
||||
CITY_ID : "640676",
|
||||
CITY_CODE : "540202000000",
|
||||
BD_KEY : "ipb1ae32sNDRMbwOOpApG6bVBji9K86R",
|
||||
|
@ -30,7 +30,7 @@ public class AreaInterceptor implements Interceptor {
|
||||
cityLevel = PathConfig.CITY_DEFAULT_LEVEL;
|
||||
}
|
||||
String name = "area" + cityLevel;
|
||||
String areaId = UserLgUtils.getCurrentCityCode();
|
||||
String areaCode = UserLgUtils.getCityCode();
|
||||
// if (TextUtils.isEmpty(areaId)) {
|
||||
// areaId = PathConfig.CITY_DEFAULT_CODE;
|
||||
// }
|
||||
@ -40,7 +40,7 @@ public class AreaInterceptor implements Interceptor {
|
||||
if (baseUrlName.size() <= 0) {
|
||||
//需要添加
|
||||
HttpUrl modifiedUrl = originalRequest.url().newBuilder()
|
||||
.addPathSegment(areaId)
|
||||
.addPathSegment(areaCode)
|
||||
.build();
|
||||
request = originalRequest.newBuilder().url(modifiedUrl).build();
|
||||
} else {
|
||||
|
@ -23,7 +23,7 @@ public class DicSelAdapter extends BaseRecyclerAdapter<BaseDictionaryBean, DicHo
|
||||
@Override
|
||||
public DicHolder createHolder(ViewGroup parent, int viewType) {
|
||||
View itemView = LayoutInflater.from(mContext)
|
||||
.inflate(R.layout.item_show_photo, parent, false);
|
||||
.inflate(R.layout.item_dic_check, parent, false);
|
||||
return new DicHolder(itemView);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user