diff --git a/config.yaml b/config.yaml index 93cc3dd..6370580 100644 --- a/config.yaml +++ b/config.yaml @@ -787,7 +787,7 @@ fadada: app_secret: "E9GMVOQ9NBSOUDG5VOFM0J1CZPOAP2Y8" # 待上线/联调用测试环境;正式上线后改为 https://api.fadada.com/api/v5/ server_url: "https://api.fadada.com/api/v5/" - open_corp_id: "7118e66dfd9349d998c0395c5d0742ad" # 海宇数据在法大大侧企业 ID + open_corp_id: "7118e66dfd9349d998c0395c5d0742ad" # 天远数据在法大大侧企业 ID # 免验证签场景码(businessId):乙方 requestVerifyFree=true 时必传,平台校验是否已授权 no_auth_scene_code: "c66587b4a048bba3c1cb032eb7750182" template_id: "1784619066713193840" # 合作协议模板 ID(填单/签署;freeSignType=template) @@ -797,8 +797,9 @@ fadada: # 签署模板内文档 docId(填单必填);可从模板详情/任务详情 docs[].docId 获取,留空则创建后自动解析 template_doc_id: "" # 模板控件编码(fieldId)——与法大大后台控件编码一致 + template_fields: - # 协议编号:线上由 GenerateContractCode 生成,格式 HYDATA-{当天YYYYMMDD}-R{6位随机数}(R=入驻),已有 contract_code 则复用;下列控件全部填同一编号 + # 协议编号:线上由 GenerateContractCode 生成,格式 CON01{YYYYMMDD}{6位随机数},已有 contract_code 则复用;下列控件全部填同一编号 agreement_no: - "0277518263" - "5199991781" @@ -824,14 +825,14 @@ fadada: party_a_sign_date: "" party_b_sign_date: "" contract: - name: "海宇数据-合作协议" + name: "合作协议-天远API" expire_days: 7 retry_count: 3 auth: - # 认证完成后顶层跳回企业入驻页(勿用 callback 页留在 iframe 内) - redirect_url: "https://console.haiyudata.com/profile/certification" + # 认证完成后顶层跳回回调页(勿用 callback 页留在 iframe 内) + redirect_url: "https://console.tianyuanapi.com/certification/callback/fadada/auth" sign: - # 甲方签署完成后回跳(iframe 内会顶层跳出到入驻页) - redirect_url: "https://console.haiyudata.com/certification/callback/fadada/sign" + # 甲方签署完成后回跳(iframe 内会顶层跳出) + redirect_url: "https://console.tianyuanapi.com/certification/callback/fadada/sign" callback: enabled: true diff --git a/configs/env.development.yaml b/configs/env.development.yaml index c4b5715..75a2386 100644 --- a/configs/env.development.yaml +++ b/configs/env.development.yaml @@ -65,6 +65,24 @@ esign: sign_field_style: 1 client_type: "ALL" redirect_url: "http://localhost:5173/certification/callback/sign" + +# =========================================== +# 📝 法大大服务配置(开发环境本地联调) +# =========================================== +fadada: + contract: + name: "合作协议-天远API" + expire_days: 7 + retry_count: 3 + auth: + # 本地控制台认证回调 + redirect_url: "http://localhost:5173/certification/callback/fadada/auth" + sign: + # 本地控制台签署回调 + redirect_url: "http://localhost:5173/certification/callback/fadada/sign" + callback: + enabled: true + # =========================================== # 🌍 西部数据配置 # =========================================== diff --git a/configs/env.production.yaml b/configs/env.production.yaml index d273c01..f733bb0 100644 --- a/configs/env.production.yaml +++ b/configs/env.production.yaml @@ -95,6 +95,22 @@ esign: sign_field_style: 1 client_type: "ALL" redirect_url: "https://console.tianyuanapi.com/certification/callback/sign" + +# =========================================== +# 📝 法大大服务配置(生产环境) +# =========================================== +fadada: + contract: + name: "合作协议-天远API" + expire_days: 7 + retry_count: 3 + auth: + redirect_url: "https://console.tianyuanapi.com/certification/callback/fadada/auth" + sign: + redirect_url: "https://console.tianyuanapi.com/certification/callback/fadada/sign" + callback: + enabled: true + # =========================================== # 💰 支付宝支付配置 # ===========================================