| | |
| | | // Fileoperation.AppendContentToFile(Fileoperation.gettestFileName(), "参数yktkh::::"+RequestParam.getString(r, "yktkh")); |
| | | |
| | | String cardID=""; |
| | | boolean needRecord=true; |
| | | Map<String, Object> mm=new HashMap<String, Object>(); |
| | | try { |
| | | JsonParser jp=new JsonParser(); |
| | | JsonObject jo=jp.parse(jsonParam).getAsJsonObject(); |
| | | cardID=JSONobj.getstring(jo, "yktkh"); |
| | | if(jo.has("needRecord")) { |
| | | needRecord = JSONobj.getbool(jo, "needRecord"); |
| | | } |
| | | } catch (Exception e) { |
| | | mm.put("respcode", 999); |
| | | mm.put("respmsg", "数据解析出错!"); |
| | | String str=Jacksonmethod.tojson(mm, false); |
| | | return str; |
| | | } |
| | | ObjectResult<Map<String, Object>> prs=fdser.getcInfo(cardID); |
| | | ObjectResult<Map<String, Object>> prs=fdser.getcInfo(cardID,needRecord); |
| | | if(prs.getCode() == 1) { |
| | | log.info("卡号:" + cardID + "---- 错误:"+ prs.getErrmsg()); |
| | | } |