Commit 9ca843dc authored by yinjiacheng's avatar yinjiacheng

fix 网络服务请求参数解析异常

parent 57884e6a
...@@ -64,8 +64,9 @@ class MBHttpReqService : ZapService() { ...@@ -64,8 +64,9 @@ class MBHttpReqService : ZapService() {
if (requestParams != null) { if (requestParams != null) {
hashMap = HashMap() hashMap = HashMap()
var key: String? var key: String?
while (requestParams.keys().hasNext()) { val iterator = requestParams.keys()
key = requestParams.keys().next() while (iterator.hasNext()) {
key = iterator.next()
hashMap[key] = requestParams.optString(key) hashMap[key] = requestParams.optString(key)
} }
} }
......
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