File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ - (void)getDeviceDetailWithProductId:(NSString *)productId deviceName:(NSString
442442
443443- (DeviceInfo *)zipData : (NSDictionary *)uiInfo baseInfo : (NSDictionary *)baseInfo deviceData : (NSDictionary *)deviceInfo
444444{
445- NSDictionary *standard = uiInfo[@" APP_zh " ][ @" Panel" ][@" standard" ];
445+ NSDictionary *standard = uiInfo[@" Panel" ][@" standard" ];
446446 if (standard && baseInfo && deviceInfo) {
447447
448448 DeviceInfo *obj = [[DeviceInfo alloc ] init ];
Original file line number Diff line number Diff line change @@ -14,7 +14,18 @@ + (void)sendRequestWithBuild:(NSDictionary *)build success:(SuccessResponseHandl
1414{
1515 BOOL useToken = [build[@" useToken" ] boolValue ];
1616 NSString *action = build[@" action" ];
17- NSDictionary *params = build[@" params" ];
17+ NSMutableDictionary *params = [NSMutableDictionary dictionaryWithDictionary: build[@" params" ]];
18+
19+ // 接口中英文语言国际化返回判断参数
20+ NSString *langAndRegionStr = [[NSLocale currentLocale ] localeIdentifier ];
21+
22+ NSString *regionStr = [[langAndRegionStr componentsSeparatedByString: @" _" ] objectAtIndex: 1 ];
23+
24+ NSString *langStr = [[langAndRegionStr componentsSeparatedByString: @" _" ] objectAtIndex: 0 ];
25+
26+ NSString *langValueString = [NSString stringWithFormat: @" %@ -%@ " ,langStr,regionStr];
27+ [params setValue: langValueString forKey: @" lang" ];
28+ [params setValue: @" iOS" forKey: @" Agent" ];
1829
1930 if ([action isEqualToString: @" AppCosAuth" ]) {
2031
You can’t perform that action at this time.
0 commit comments