* 查询账单
* */
@RequestMapping("/bills")
- fun bills(pageno: Int,platform: String?): JsonResult {
+ fun bills(pageno: Int,platform: String?,type:String?): JsonResult {
val p = SecurityContextHolder.getContext().authentication
val user = mobileApiService.findUserById(p.name)
?: return JsonResult.error("用户不存在,请注册")
var versionurl:String?=""
if(!platform.isNullOrEmpty()){
var map= mutableMapOf<String,Any>()
+ var key=""
if(platform.toLowerCase().contains("android")){
- dictionaryProxy.refreshDictionary("androidapp")
- map = dictionaryProxy.getDictionaryAsMap("androidapp")
+ key="androidapp"
+ if(!type.isNullOrEmpty()){
+ key+= "_$type"
+ }
+ dictionaryProxy.refreshDictionary(key)
+ map = dictionaryProxy.getDictionaryAsMap(key)
if(map["androidversion"]!=null){
version = map["androidversion"] as String
}
}
}else if(platform.toLowerCase().contains("iphone")){
- map = dictionaryProxy.getDictionaryAsMap("iosapp")
+ key="iosapp"
+ if(!type.isNullOrEmpty()){
+ key+= "_$type"
+ }
+ dictionaryProxy.refreshDictionary(key)
+ map = dictionaryProxy.getDictionaryAsMap(key)
if(map["iosversion"]!=null){
version = map["iosversion"] as String
}