|
|
@@ -13,6 +13,7 @@ import org.jeecg.common.exception.JeecgBootException;
|
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
|
import org.jeecg.common.util.StringUtils;
|
|
|
import org.jeecg.common.util.YouBianCodeUtil;
|
|
|
+import org.jeecg.common.utils.CryptTool;
|
|
|
import org.jeecg.common.utils.HttpsContants;
|
|
|
import org.jeecg.common.utils.OauthApi;
|
|
|
import org.jeecg.common.utils.OauthTokenUtils;
|
|
|
@@ -122,7 +123,9 @@ public class HlgCompanyServiceImpl extends ServiceImpl<HlgCompanyMapper, HlgComp
|
|
|
parameters.put("countryCode", hlgCompany.getCountryCode());
|
|
|
parameters.put("provinceCityCountry", hlgCompany.getProvinceCityCountry());
|
|
|
log.info("param============{}", JSONObject.toJSONString(parameters));
|
|
|
- JSONObject jsonObject = OauthTokenUtils.doRequest(requestUrl, HttpsContants.POST, JSONObject.toJSONString(parameters), accessToken);
|
|
|
+ //数据加密
|
|
|
+ String biz_content = CryptTool.encode(JSONObject.toJSONString(parameters));
|
|
|
+ JSONObject jsonObject = OauthTokenUtils.doRequest(requestUrl, HttpsContants.POST, biz_content, accessToken);
|
|
|
log.info("企业-新增===={}", jsonObject);
|
|
|
if (jsonObject != null) {
|
|
|
if (jsonObject.getBoolean("success")) {
|