提交 d96fffe3 作者: zhenjie

小猪结算签约修改

上级 7803d267
...@@ -26,7 +26,7 @@ public interface XzService { ...@@ -26,7 +26,7 @@ public interface XzService {
String xzAuthNotify(JSONObject notify); String xzAuthNotify(JSONObject notify);
String getSignedResult(XzAuthVO xzAuthVO); JSONObject getSignedResult(XzAuthVO xzAuthVO);
String viewContract(String documentId); String viewContract(String documentId);
......
...@@ -4,6 +4,7 @@ import cn.hutool.core.codec.Base64; ...@@ -4,6 +4,7 @@ import cn.hutool.core.codec.Base64;
import cn.hutool.core.net.URLDecoder; import cn.hutool.core.net.URLDecoder;
import cn.hutool.json.JSONObject; import cn.hutool.json.JSONObject;
import com.alibaba.fastjson2.JSON; import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONArray;
import com.mmc.iuav.general.CodeUtil; import com.mmc.iuav.general.CodeUtil;
import com.mmc.iuav.http.HttpsRequestUtil; import com.mmc.iuav.http.HttpsRequestUtil;
import com.mmc.iuav.response.ResultBody; import com.mmc.iuav.response.ResultBody;
...@@ -51,6 +52,7 @@ import java.math.BigDecimal; ...@@ -51,6 +52,7 @@ import java.math.BigDecimal;
import java.nio.charset.Charset; import java.nio.charset.Charset;
import java.util.Date; import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.List;
import java.util.Map; import java.util.Map;
/** /**
...@@ -122,10 +124,13 @@ public class XzServiceImpl implements XzService { ...@@ -122,10 +124,13 @@ public class XzServiceImpl implements XzService {
com.alibaba.fastjson2.JSONObject jsonObject1 = com.alibaba.fastjson2.JSONObject.parseObject(contractScope); com.alibaba.fastjson2.JSONObject jsonObject1 = com.alibaba.fastjson2.JSONObject.parseObject(contractScope);
if (jsonObject1.get("data") != null) { if (jsonObject1.get("data") != null) {
// TODO 添加认证结果 // TODO 添加认证结果
String signedResult = this.getSignedResult(xzAuthVO); JSONObject signedResult = this.getSignedResult(xzAuthVO);
log.info("Signed result: {}", signedResult); if (signedResult.get("msg").equals("success")) {
// JSONArray.parseArray(); log.info("Signed result: {}", signedResult);
return signedResult; List<JSONObject> jsonObjects = JSONArray.parseArray(signedResult.get("data").toString(), JSONObject.class);
log.info("jsonObjects : {}", com.alibaba.fastjson2.JSONObject.toJSONString(jsonObjects));
}
return signedResult.toString();
} else { } else {
// 获取认证信息 // 获取认证信息
RealNameAuthDO realNameAuthDO = realNameAuthDao.getRealNameAuthByUId(loginSuccessDTO.getUserAccountId()); RealNameAuthDO realNameAuthDO = realNameAuthDao.getRealNameAuthByUId(loginSuccessDTO.getUserAccountId());
...@@ -178,7 +183,7 @@ public class XzServiceImpl implements XzService { ...@@ -178,7 +183,7 @@ public class XzServiceImpl implements XzService {
} }
@Override @Override
public String getSignedResult(XzAuthVO xzAuthVO) { public JSONObject getSignedResult(XzAuthVO xzAuthVO) {
PiggySignApiClient piggySignApiClient = PiggySignApiClient.getInstanse(userSystemConstant.getXzAppSecret(), userSystemConstant.getXzDomain()); PiggySignApiClient piggySignApiClient = PiggySignApiClient.getInstanse(userSystemConstant.getXzAppSecret(), userSystemConstant.getXzDomain());
JSONObject jsonObject = piggySignApiClient.getSignResult(PiggySignResultVo.builder() JSONObject jsonObject = piggySignApiClient.getSignResult(PiggySignResultVo.builder()
.appKey(userSystemConstant.getXzAppKey()) .appKey(userSystemConstant.getXzAppKey())
...@@ -186,7 +191,7 @@ public class XzServiceImpl implements XzService { ...@@ -186,7 +191,7 @@ public class XzServiceImpl implements XzService {
.userName(xzAuthVO.getUsername()) .userName(xzAuthVO.getUsername())
.build()); .build());
System.out.println(jsonObject.toString()); System.out.println(jsonObject.toString());
return jsonObject.toString(); return jsonObject;
} }
@Override @Override
......
...@@ -70,12 +70,18 @@ third-party: ...@@ -70,12 +70,18 @@ third-party:
app-key: 5015e664848d406ab1ca4b505c3da803 app-key: 5015e664848d406ab1ca4b505c3da803
secret-key: 7C4DB8CCECC148175E46392CC0A1B410 secret-key: 7C4DB8CCECC148175E46392CC0A1B410
xzsz: xzsz:
appKey: 1e8e59e056be41f8a05c090964d7ce37 # appKey: 1e8e59e056be41f8a05c090964d7ce37
appSecret: ceshihuanjingyanshizhanghao00000 # appSecret: ceshihuanjingyanshizhanghao00000
# aes: 0000000000000000
# domain: https://uat.xzsz.ltd/
# position: 销售推广
# taxFundId: xxxxxxxxxxxxxxxxxxxxxxx
appKey: 37f76305f1864339adc8d6d03fbf918d
appSecret: hangzhouyunxiangfeikeji000000000
aes: 0000000000000000 aes: 0000000000000000
domain: https://uat.xzsz.ltd/ domain: https://saas.xzsz.ltd
position: 销售推广 position: 市场推广
taxFundId: xxxxxxxxxxxxxxxxxxxxxxx taxFundId: 0b0376083af4435885bd5d5cd3d63053
authNotify: https://test.iuav.shop/userapp/xz/xzAuthNotify authNotify: https://test.iuav.shop/userapp/xz/xzAuthNotify
withdrawNotify: https://test.iuav.shop/userapp/xz/xzWithdrawNotify withdrawNotify: https://test.iuav.shop/userapp/xz/xzWithdrawNotify
......
...@@ -48,6 +48,12 @@ third-party: ...@@ -48,6 +48,12 @@ third-party:
authNotify: https://test.iuav.shop/userapp/xz/xzAuthNotify authNotify: https://test.iuav.shop/userapp/xz/xzAuthNotify
withdrawNotify: https://test.iuav.shop/userapp/xz/xzWithdrawNotify withdrawNotify: https://test.iuav.shop/userapp/xz/xzWithdrawNotify
fdd:
appid: 407664
appkey: q146q3Cjmi7Y6BVl8jtZK9pH
version: 2
host: https://testapi.fadada.com:8443/api/
mmc-url: https://test.iuav.shop/userapp/
iuav: iuav:
pay: pay:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论