| | |
| | | } |
| | | |
| | | JSONObject userInfo = JSONObject.parseObject(responseEntity.getBody()); |
| | | |
| | | if (userInfo.containsKey("code") && 0 != userInfo.getIntValue("code")) { |
| | | return responseEntity; |
| | | } |
| | | //根据用户查询商户信息 |
| | | String userId = userInfo.getString("userId"); |
| | | |
| | |
| | | userInfo.put("storeTypeCd", storeInfo.getString("storeTypeCd")); |
| | | JSONObject paramOut = new JSONObject(); |
| | | paramOut.put("result", 0); |
| | | |
| | | paramOut.put("code", 0); |
| | | paramOut.put("msg", "成功"); |
| | | paramOut.put("userInfo", userInfo); |
| | | paramOut.put("token", userInfo.getString("token")); |
| | | //pd.setToken(JSONObject.parseObject(responseEntity.getBody()).getString("token")); |