|
@@ -404,8 +404,28 @@ public class SysUserSignCertServiceImpl implements SysUserSignCertService {
|
|
|
if (userSub.getCertStatus() > ZhongZhiCertStatus.UN_SIGN.getCode()) {
|
|
|
return R.ok();
|
|
|
}
|
|
|
- this.updateUserCertStatus(userSub.getId(), "内部状态对其", ZhongZhiCertStatus.SIGN.getCode(), null);
|
|
|
- return R.ok();
|
|
|
+
|
|
|
+ postResult = this.toSignCommonRequest(sysUser, userSub);
|
|
|
+
|
|
|
+ if (JSONUtil.isJsonObj(postResult)) {
|
|
|
+ JSONObject jsonResult = JSONUtil.parseObj(postResult);
|
|
|
+ if (jsonResult.getInt("code") == 0) {
|
|
|
+ JSONObject data = jsonResult.getJSONObject("data");
|
|
|
+ message = data.getStr("message");
|
|
|
+
|
|
|
+ if ("200".equals(data.getStr("code"))) {
|
|
|
+ successFlag = true;
|
|
|
+ certStatus = ZhengQiZhiXingCertStatus.SIGN.getCode();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ this.updateUserCertStatus(userSub.getId(), message, certStatus, requestId);
|
|
|
+
|
|
|
+ if (successFlag) {
|
|
|
+ return R.ok();
|
|
|
+ }
|
|
|
+ break;
|
|
|
// case HAN_TANG:
|
|
|
// // 汉唐
|
|
|
// if (userSub.getCertStatus() > HanTangCertStatus.UN_SIGN.getCode()) {
|