This commit is contained in:
Marsway 2026-01-13 16:59:23 +08:00
parent 60d127675c
commit 8e70342ff2
3 changed files with 15 additions and 3 deletions

View File

@ -114,5 +114,3 @@ class SeeyonClient(BaseClient):
json=body,
headers={"Content-Type": "application/json"},
)

14
extensions/demo/job.py Normal file
View File

@ -0,0 +1,14 @@
from __future__ import annotations
import logging
from typing import Any
from app.jobs.base import BaseJob
logger = logging.getLogger("connecthub.extensions.sync_oa_to_didi")
class testJob(BaseJob):
job_id = "test.job"
def run(self, params: dict[str, Any], secrets: dict[str, Any]) -> dict[str, Any]:
return {"message": "hello, world"}

View File

@ -230,7 +230,7 @@ class SyncOAToDidiLegalEntitySyncJob(BaseJob):
extra = params.get("extra")
if extra is not None and not isinstance(extra, dict):
raise ValueError("public_cfg.extra must be a JSON object (dict) if provided")
# 致远 OA 客户端
seeyon = SeeyonClient(base_url=oa_base_url, rest_user=rest_user, rest_password=rest_password, loginName=login_name)
try:
resp = seeyon.export_cap4_form_soap(