彻底修复 lewan 自动发货问题-8-8-2
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
verifyCloudtentaclesLoginCode,
|
||||
} from "../../platforms/cloudtentacles/virtual-number-service.js";
|
||||
import { KUAISHOU_CLOUD_FIXED_VN_KEY, type JsonObject } from "./domain.js";
|
||||
import { logInfo } from "../../../utils/logger.js";
|
||||
|
||||
/** 账号号码配额占满后冷却:避免领取页轮询 / open-91 交付每轮都狂打上游 */
|
||||
const APPOINT_QUOTA_COOLDOWN_MS = 60_000;
|
||||
@@ -108,6 +109,14 @@ export async function prepareKuaishouCloudBindResourceWithFallback(input: JsonOb
|
||||
vnId = Number(appointed.item?.id || 0);
|
||||
vnPhone = String(appointed.item?.phone || "").trim();
|
||||
|
||||
logInfo('[kuaishou-cloud/binding]', '虚拟号申请成功', {
|
||||
sourceKey,
|
||||
accountLabel: cloudContext.accountLabel,
|
||||
purpose: String(input.purpose || 'prepare_binding'),
|
||||
vnKey,
|
||||
vnId,
|
||||
});
|
||||
|
||||
if (!vnId || !vnPhone) {
|
||||
throw createHttpError("申请虚拟号成功但返回数据不完整", {
|
||||
statusCode: 502,
|
||||
|
||||
Reference in New Issue
Block a user