| | |
| | | Assert.jsonObjectHaveKey(storeInfo, "storeId", "根据员工未查到商户信息"); |
| | | Assert.jsonObjectHaveKey(storeInfo, "storeTypeCd", "根据员工未查到商户类型信息"); |
| | | userInfo.put("storeId",storeInfo.getString("storeId")); |
| | | userInfo.put("storeName", storeInfo.getString("name")); |
| | | userInfo.put("storeTypeCd",storeInfo.getString("storeTypeCd")); |
| | | JSONObject paramOut = new JSONObject(); |
| | | paramOut.put("result", 0); |
| | |
| | | paramOut.put("token", userInfo.getString("token")); |
| | | pd.setToken(JSONObject.parseObject(responseEntity.getBody()).getString("token")); |
| | | |
| | | return responseEntity; |
| | | return new ResponseEntity<>(paramOut.toJSONString(), HttpStatus.OK); |
| | | } |
| | | |
| | | public RestTemplate getRestTemplate() { |