update
This commit is contained in:
parent
60d127675c
commit
8e70342ff2
|
|
@ -114,5 +114,3 @@ class SeeyonClient(BaseClient):
|
|||
json=body,
|
||||
headers={"Content-Type": "application/json"},
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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"}
|
||||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue