让成交卡等报价文件真正发出后再出现,并收紧 PDF 顶部留白,避免抬头被裁或空一截。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -270,6 +270,14 @@ class WeComAppClient:
|
||||
logger.info("企微发送成功 touser=%s reply=%s", body.get("touser"), shown)
|
||||
return WeComSendResult(ok=True, errcode=0, errmsg=errmsg, raw=data)
|
||||
|
||||
def get_access_token(self) -> str:
|
||||
"""
|
||||
取出站/JS-SDK 用的 access_token。
|
||||
|
||||
只给同进程 H5 签名用;禁止写进页面或日志。
|
||||
"""
|
||||
return self._get_token()
|
||||
|
||||
def _get_token(self) -> str:
|
||||
with self._lock:
|
||||
now = time.time()
|
||||
|
||||
Reference in New Issue
Block a user