passport 邮箱后缀及build
This commit is contained in:
parent
12f79918e3
commit
d3ba00901f
|
|
@ -4,66 +4,15 @@
|
|||
*/
|
||||
import React from 'react';
|
||||
import { EntityDict } from '../oak-app-domain';
|
||||
import { ReactComponentProps, ColumnProps, RowWithActions, OakExtraActionProps, OakAbsAttrDef, onActionFnDef, ListButtonProps, OakAbsAttrUpsertDef } from 'oak-frontend-base';
|
||||
declare const FilterPanel: <T extends keyof EntityDict>(props: ReactComponentProps<EntityDict, T, false, {
|
||||
entity: T;
|
||||
columns: ColumnProps<EntityDict, T>[];
|
||||
}>) => React.ReactElement;
|
||||
declare const List: <T extends keyof EntityDict>(props: ReactComponentProps<EntityDict, T, false, {
|
||||
entity: T;
|
||||
extraActions: OakExtraActionProps[] | ((row: RowWithActions<EntityDict, T>) => OakExtraActionProps[]);
|
||||
onAction: onActionFnDef;
|
||||
disabledOp: boolean;
|
||||
attributes: OakAbsAttrDef[];
|
||||
data: RowWithActions<EntityDict, T>[];
|
||||
loading: boolean;
|
||||
tablePagination?: React.ReactNode;
|
||||
rowSelection?: any;
|
||||
hideHeader?: boolean | undefined;
|
||||
disableSerialNumber?: boolean | undefined;
|
||||
size?: "small" | "middle" | "large" | undefined;
|
||||
scroll?: any;
|
||||
empty?: React.ReactNode;
|
||||
opWidth?: number | undefined;
|
||||
ellipsis?: boolean | undefined;
|
||||
}>) => React.ReactElement;
|
||||
declare const ListPro: <T extends keyof EntityDict>(props: {
|
||||
title?: any;
|
||||
extraContent?: any;
|
||||
hideDefaultButtons?: boolean | undefined;
|
||||
buttonGroup?: ListButtonProps[] | undefined;
|
||||
onReload?: (() => void) | undefined;
|
||||
entity: T;
|
||||
extraActions?: OakExtraActionProps[] | ((row: RowWithActions<EntityDict, T>) => OakExtraActionProps[]) | undefined;
|
||||
onAction?: onActionFnDef | undefined;
|
||||
disabledOp?: boolean | undefined;
|
||||
attributes: OakAbsAttrDef[];
|
||||
data: RowWithActions<EntityDict, T>[];
|
||||
loading?: boolean | undefined;
|
||||
tablePagination?: any;
|
||||
rowSelection?: any;
|
||||
disableSerialNumber?: boolean | undefined;
|
||||
size?: "small" | "middle" | "large" | undefined;
|
||||
scroll?: any;
|
||||
empty?: any;
|
||||
opWidth?: number | undefined;
|
||||
oakPath?: string | undefined;
|
||||
}) => React.ReactElement;
|
||||
declare const Detail: <T extends keyof EntityDict>(props: ReactComponentProps<EntityDict, T, false, {
|
||||
column?: number | Record<Breakpoint, number> | undefined;
|
||||
entity: T;
|
||||
attributes: OakAbsAttrDef[];
|
||||
data: Partial<EntityDict[T]["Schema"]>;
|
||||
title?: string | undefined;
|
||||
bordered?: boolean | undefined;
|
||||
layout?: "horizontal" | "vertical" | undefined;
|
||||
}>) => React.ReactElement;
|
||||
declare const Upsert: <T extends keyof EntityDict>(props: ReactComponentProps<EntityDict, T, false, {
|
||||
helps: Record<string, string>;
|
||||
entity: T;
|
||||
attributes: OakAbsAttrUpsertDef<EntityDict, T, string | number>[];
|
||||
data: EntityDict[T]["Schema"];
|
||||
layout: "horizontal" | "vertical";
|
||||
mode: "default" | "card";
|
||||
}>) => React.ReactElement;
|
||||
import { ReactComponentProps, ColumnProps, RowWithActions, OakExtraActionProps, OakAbsAttrDef, onActionFnDef } from 'oak-frontend-base';
|
||||
import AbsFilterPanel from 'oak-frontend-base/es/components/filterPanel';
|
||||
import AbsList from 'oak-frontend-base/es/components/list';
|
||||
import AbsListPro from 'oak-frontend-base/es/components/listPro';
|
||||
import AbsDetail from 'oak-frontend-base/es/components/detail';
|
||||
import AbsUpsert from 'oak-frontend-base/es/components/upsert';
|
||||
declare const FilterPanel: <T extends keyof EntityDict>(...props: Parameters<typeof AbsFilterPanel<EntityDict, T>>) => React.ReactElement;
|
||||
declare const List: <T extends keyof EntityDict>(...props: Parameters<typeof AbsList<EntityDict, T>>) => React.ReactElement;
|
||||
declare const ListPro: <T extends keyof EntityDict>(...props: Parameters<typeof AbsListPro<EntityDict, T>>) => React.ReactElement;
|
||||
declare const Detail: <T extends keyof EntityDict>(...props: Parameters<typeof AbsDetail<EntityDict, T>>) => React.ReactElement;
|
||||
declare const Upsert: <T extends keyof EntityDict>(...props: Parameters<typeof AbsUpsert<EntityDict, T>>) => React.ReactElement;
|
||||
export { FilterPanel, List, ListPro, Detail, Upsert, ReactComponentProps, ColumnProps, RowWithActions, OakExtraActionProps, OakAbsAttrDef, onActionFnDef, };
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
/// <reference types="react" />
|
||||
import { EntityDict } from "../../../oak-app-domain";
|
||||
export default function Render(props: {
|
||||
accountOpers: EntityDict['accountOper']['OpSchema'][];
|
||||
|
|
|
|||
|
|
@ -1,3 +1,2 @@
|
|||
/// <reference types="wechat-miniprogram" />
|
||||
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "offlineAccount", false, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,2 @@
|
|||
/// <reference types="wechat-miniprogram" />
|
||||
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "order", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { EntityDict } from "../../../oak-app-domain";
|
|||
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "order", false, {
|
||||
accountId: string;
|
||||
accountAvailMax: number;
|
||||
onSetPays: (pays: Partial<EntityDict['pay']['CreateOperationData']>[]) => void;
|
||||
onSetPays: (pays: Partial<EntityDict["pay"]["CreateOperationData"]>[]) => void;
|
||||
accountTips: string;
|
||||
autoStartPay: boolean;
|
||||
}>) => React.ReactElement;
|
||||
|
|
|
|||
|
|
@ -24,10 +24,10 @@ export default OakComponent({
|
|||
},
|
||||
isList: false,
|
||||
properties: {
|
||||
accountId: '',
|
||||
accountAvailMax: 0,
|
||||
accountId: '', // 是否可以使用帐户中的余额抵扣
|
||||
accountAvailMax: 0, // 本次交易可以使用的帐户中的Avail max值,调用者自己保证此数值的一致性,不要扣成负数
|
||||
onSetPays: (pays) => undefined,
|
||||
accountTips: '',
|
||||
accountTips: '', // 使用余额支付的提示说明
|
||||
autoStartPay: false,
|
||||
},
|
||||
formData({ data }) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
/// <reference types="react" />
|
||||
export default function Info(props: {
|
||||
price: number;
|
||||
t: (k: string) => string;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
/// <reference types="react" />
|
||||
import { PayChannelOption } from "../../../types/Pay";
|
||||
export default function Render(props: {
|
||||
data: {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
/// <reference types="react" />
|
||||
import { PayChannelOption } from "../../../types/Pay";
|
||||
export default function Render(props: {
|
||||
data: {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,2 @@
|
|||
/// <reference types="wechat-miniprogram" />
|
||||
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "pay", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,2 @@
|
|||
/// <reference types="wechat-miniprogram" />
|
||||
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "system", false, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,2 @@
|
|||
/// <reference types="wechat-miniprogram" />
|
||||
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "refund", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,2 @@
|
|||
/// <reference types="wechat-miniprogram" />
|
||||
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "system", false, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
/// <reference types="wechat-miniprogram" />
|
||||
import { EntityDict } from "../../../../oak-app-domain";
|
||||
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "wechatMpShip", false, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,2 @@
|
|||
/// <reference types="wechat-miniprogram" />
|
||||
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "withdrawTransfer", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
/// <reference types="wechat-miniprogram" />
|
||||
import { EntityDict } from "../../../oak-app-domain";
|
||||
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "withdraw", false, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
/// <reference types="react" />
|
||||
import { EntityDict } from '../../../oak-app-domain';
|
||||
export default function render(props: {
|
||||
data: {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
/// <reference types="react" />
|
||||
import { EntityDict } from '../../../oak-app-domain';
|
||||
export default function render(props: {
|
||||
data: {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
/// <reference types="wechat-miniprogram" />
|
||||
import { EntityDict } from '../../../oak-app-domain';
|
||||
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "withdrawTransfer", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ export type EmailConfig = {
|
|||
html?: string;
|
||||
codeDuration?: number;
|
||||
digit?: number;
|
||||
emailSuffixes?: string[];
|
||||
};
|
||||
export type PfwConfig = {
|
||||
appId: string;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Timer } from 'oak-domain/lib/types/Timer';
|
||||
import { EntityDict } from '../oak-app-domain/index';
|
||||
import { BRC } from '../types/RuntimeCxt';
|
||||
declare const _default: Timer<EntityDict, keyof EntityDict, BRC>[];
|
||||
declare const _default: Array<Timer<EntityDict, keyof EntityDict, BRC>>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ export declare class ExternalPayUtilException<ED extends EntityDict> extends Oak
|
|||
name: string;
|
||||
message: string;
|
||||
_module: string | undefined;
|
||||
params: Record<string, any> | undefined;
|
||||
opRecords: OpRecord<ED>[];
|
||||
tag1: string | undefined;
|
||||
tag2: boolean | undefined;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
/// <reference types="node" />
|
||||
import { EntityDict } from '../oak-app-domain';
|
||||
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
||||
import BackendRuntimeContext from '../context/BackendRuntimeContext';
|
||||
|
|
|
|||
|
|
@ -157,9 +157,9 @@ export default class WechatMpShipDebug {
|
|||
name: from.name,
|
||||
mobile: from.phone,
|
||||
// country: from!.area!.parent!.parent!.name!, //国家
|
||||
province: from.area.parent.parent.name,
|
||||
city: from.area.parent.name,
|
||||
area: from.area.name,
|
||||
province: from.area.parent.parent.name, //省份
|
||||
city: from.area.parent.name, //市
|
||||
area: from.area.name, // 区
|
||||
address: from.detail, //详细地址
|
||||
},
|
||||
receiver: {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getExpressPrintInfo = exports.getMpShipState = void 0;
|
||||
exports.getMpShipState = getMpShipState;
|
||||
exports.getExpressPrintInfo = getExpressPrintInfo;
|
||||
const types_1 = require("oak-domain/lib/types");
|
||||
const ship_1 = require("../utils/ship");
|
||||
const shipClazz_1 = require("../utils/shipClazz");
|
||||
|
|
@ -18,7 +19,6 @@ async function getMpShipState(params, context) {
|
|||
return shipState;
|
||||
}
|
||||
}
|
||||
exports.getMpShipState = getMpShipState;
|
||||
/**
|
||||
* 获取打印面单
|
||||
*/
|
||||
|
|
@ -43,4 +43,3 @@ async function getExpressPrintInfo(params, context) {
|
|||
const clazz = await (0, shipClazz_1.getShipClazz)(entity, entityId, context);
|
||||
return await clazz.getPrintInfo(shipId, context);
|
||||
}
|
||||
exports.getExpressPrintInfo = getExpressPrintInfo;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getWithdrawCreateData = void 0;
|
||||
exports.getWithdrawCreateData = getWithdrawCreateData;
|
||||
const tslib_1 = require("tslib");
|
||||
const types_1 = require("oak-domain/lib/types");
|
||||
const uuid_1 = require("oak-domain/lib/utils/uuid");
|
||||
|
|
@ -211,4 +211,3 @@ async function getWithdrawCreateData(params, context) {
|
|||
data.loss = totalLoss;
|
||||
return data;
|
||||
}
|
||||
exports.getWithdrawCreateData = getWithdrawCreateData;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.initialize = exports.create = void 0;
|
||||
exports.create = create;
|
||||
exports.initialize = initialize;
|
||||
const tslib_1 = require("tslib");
|
||||
const lodash_1 = require("oak-domain/lib/utils/lodash");
|
||||
const features_1 = require("oak-general-business/es/features");
|
||||
|
|
@ -12,7 +13,6 @@ function create(features) {
|
|||
pay,
|
||||
};
|
||||
}
|
||||
exports.create = create;
|
||||
async function initialize(features, access, config, clazzes) {
|
||||
await (0, features_1.initialize)(features, access, config ? {
|
||||
dontAutoLoginInWechatmp: config.dontAutoLoginInWechatmp,
|
||||
|
|
@ -21,4 +21,3 @@ async function initialize(features, access, config, clazzes) {
|
|||
applicationExtraProjection: application_1.applicationProjection,
|
||||
}, clazzes);
|
||||
}
|
||||
exports.initialize = initialize;
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ export type EmailConfig = {
|
|||
html?: string;
|
||||
codeDuration?: number;
|
||||
digit?: number;
|
||||
emailSuffixes?: string[];
|
||||
};
|
||||
export type PfwConfig = {
|
||||
appId: string;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Timer } from 'oak-domain/lib/types/Timer';
|
||||
import { EntityDict } from '../oak-app-domain/index';
|
||||
import { BRC } from '../types/RuntimeCxt';
|
||||
declare const _default: Timer<EntityDict, keyof EntityDict, BRC>[];
|
||||
declare const _default: Array<Timer<EntityDict, keyof EntityDict, BRC>>;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.updateWithdrawState = void 0;
|
||||
exports.updateWithdrawState = updateWithdrawState;
|
||||
const tslib_1 = require("tslib");
|
||||
const uuid_1 = require("oak-domain/lib/utils/uuid");
|
||||
const assert_1 = tslib_1.__importDefault(require("assert"));
|
||||
|
|
@ -98,7 +98,6 @@ async function updateWithdrawState(context, id) {
|
|||
}, {});
|
||||
return 1;
|
||||
}
|
||||
exports.updateWithdrawState = updateWithdrawState;
|
||||
const triggers = [
|
||||
{
|
||||
name: '当withdraw创建时,如果是走退款渠道,则创建出相应的refunds,同时更改account中的数值',
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = makeException;
|
||||
const Exception_1 = require("oak-domain/lib/types/Exception");
|
||||
const oak_general_business_1 = require("oak-general-business");
|
||||
function makeException(data) {
|
||||
const e = (0, Exception_1.makeException)(data) || (0, oak_general_business_1.makeException)(data);
|
||||
return e;
|
||||
}
|
||||
exports.default = makeException;
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ export declare class ExternalPayUtilException<ED extends EntityDict> extends Oak
|
|||
name: string;
|
||||
message: string;
|
||||
_module: string | undefined;
|
||||
params: Record<string, any> | undefined;
|
||||
opRecords: OpRecord<ED>[];
|
||||
tag1: string | undefined;
|
||||
tag2: boolean | undefined;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.makeException = exports.StartPayFailure = exports.PayUnRefundable = exports.RefundExceedMax = exports.ExternalPayUtilException = exports.UploadShipException = void 0;
|
||||
exports.StartPayFailure = exports.PayUnRefundable = exports.RefundExceedMax = exports.ExternalPayUtilException = exports.UploadShipException = void 0;
|
||||
exports.makeException = makeException;
|
||||
const tslib_1 = require("tslib");
|
||||
const types_1 = require("oak-domain/lib/types");
|
||||
const DependentExceptions_1 = tslib_1.__importDefault(require("./DependentExceptions"));
|
||||
|
|
@ -68,4 +69,3 @@ function makeException(msg) {
|
|||
}
|
||||
return exception;
|
||||
}
|
||||
exports.makeException = makeException;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.mergedProjection = exports.applicationProjection = exports.registerApplicationProjection = void 0;
|
||||
exports.mergedProjection = exports.applicationProjection = void 0;
|
||||
exports.registerApplicationProjection = registerApplicationProjection;
|
||||
const Projection_1 = require("oak-general-business/lib/types/Projection");
|
||||
const lodash_1 = require("oak-domain/lib/utils/lodash");
|
||||
function registerApplicationProjection(projection) {
|
||||
(0, lodash_1.merge)(exports.applicationProjection, projection);
|
||||
}
|
||||
exports.registerApplicationProjection = registerApplicationProjection;
|
||||
exports.applicationProjection = {
|
||||
wpProduct$application: {
|
||||
$entity: 'wpProduct',
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
/// <reference types="node" />
|
||||
import { EntityDict } from '../oak-app-domain';
|
||||
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
||||
import BackendRuntimeContext from '../context/BackendRuntimeContext';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.refreshPayState = exports.refundNotify = exports.payNotify = exports.fullPayProjection = void 0;
|
||||
exports.fullPayProjection = void 0;
|
||||
exports.payNotify = payNotify;
|
||||
exports.refundNotify = refundNotify;
|
||||
exports.refreshPayState = refreshPayState;
|
||||
const tslib_1 = require("tslib");
|
||||
const payClazz_1 = require("./payClazz");
|
||||
const assert_1 = tslib_1.__importDefault(require("assert"));
|
||||
|
|
@ -87,7 +90,6 @@ async function payNotify(context, body, payId, headers) {
|
|||
}
|
||||
return;
|
||||
}
|
||||
exports.payNotify = payNotify;
|
||||
async function refundNotify(context, body, refundId, headers) {
|
||||
const [refund] = await context.select('refund', {
|
||||
data: {
|
||||
|
|
@ -140,7 +142,6 @@ async function refundNotify(context, body, refundId, headers) {
|
|||
}, {});
|
||||
}
|
||||
}
|
||||
exports.refundNotify = refundNotify;
|
||||
/**
|
||||
* 刷新paying状态的pay的真实支付状态
|
||||
* @param pay
|
||||
|
|
@ -208,4 +209,3 @@ async function refreshPayState(pay, context) {
|
|||
}, {});
|
||||
}
|
||||
}
|
||||
exports.refreshPayState = refreshPayState;
|
||||
|
|
|
|||
|
|
@ -1,13 +1,12 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.registerGetPayStateResult = void 0;
|
||||
exports.registerGetPayStateResult = registerGetPayStateResult;
|
||||
const tslib_1 = require("tslib");
|
||||
const assert_1 = tslib_1.__importDefault(require("assert"));
|
||||
let _PAY_STATE = '';
|
||||
function registerGetPayStateResult(payState) {
|
||||
_PAY_STATE = payState;
|
||||
}
|
||||
exports.registerGetPayStateResult = registerGetPayStateResult;
|
||||
class WechatPay {
|
||||
wpProduct;
|
||||
constructor(wpProduct) {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getPayClazz = exports.registerPayClazz = exports.getAccountEntity = void 0;
|
||||
exports.getAccountEntity = getAccountEntity;
|
||||
exports.registerPayClazz = registerPayClazz;
|
||||
exports.getPayClazz = getPayClazz;
|
||||
const tslib_1 = require("tslib");
|
||||
const assert_1 = tslib_1.__importDefault(require("assert"));
|
||||
const Offline_1 = tslib_1.__importDefault(require("./Offline"));
|
||||
|
|
@ -108,7 +110,6 @@ const PayClazzEntityDict = {
|
|||
function getAccountEntity(entity) {
|
||||
return PayClazzEntityDict[entity].accountEntity;
|
||||
}
|
||||
exports.getAccountEntity = getAccountEntity;
|
||||
// 这里用一个flag来表达先后顺序,如果有registerPayClazz,框架应保证register在get之前
|
||||
// 目前因为没有registerPayClazz,所以没测,可能不对。by Xc 20240608
|
||||
let MODULE_USED = false;
|
||||
|
|
@ -142,7 +143,6 @@ function registerPayClazz(entity, def, schema) {
|
|||
}
|
||||
(0, abstractChecker_1.registerAccountEntity)(def.accountEntity);
|
||||
}
|
||||
exports.registerPayClazz = registerPayClazz;
|
||||
async function getPayClazz(entity, entityId, context) {
|
||||
if (!MODULE_USED) {
|
||||
MODULE_USED = true;
|
||||
|
|
@ -155,4 +155,3 @@ async function getPayClazz(entity, entityId, context) {
|
|||
PayChannelDict[key] = PayClazz;
|
||||
return PayClazz;
|
||||
}
|
||||
exports.getPayClazz = getPayClazz;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,12 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.notifyConfirmReceive = exports.refreshShipState = exports.refreshMpOrderShipState = exports.getOrderShipState = exports.uploadShippingInfo = exports.maskPhone = exports.shipProjection = void 0;
|
||||
exports.shipProjection = void 0;
|
||||
exports.maskPhone = maskPhone;
|
||||
exports.uploadShippingInfo = uploadShippingInfo;
|
||||
exports.getOrderShipState = getOrderShipState;
|
||||
exports.refreshMpOrderShipState = refreshMpOrderShipState;
|
||||
exports.refreshShipState = refreshShipState;
|
||||
exports.notifyConfirmReceive = notifyConfirmReceive;
|
||||
const oak_external_sdk_1 = require("oak-external-sdk");
|
||||
const assert_1 = require("oak-domain/lib/utils/assert");
|
||||
const uuid_1 = require("oak-domain/lib/utils/uuid");
|
||||
|
|
@ -130,7 +136,6 @@ function maskPhone(phone) {
|
|||
const end = phone.slice(-4);
|
||||
return start + '****' + end;
|
||||
}
|
||||
exports.maskPhone = maskPhone;
|
||||
/**
|
||||
* 小程序发货信息录入
|
||||
* @param shipInfo
|
||||
|
|
@ -251,7 +256,6 @@ async function uploadShippingInfo(shipId, context) {
|
|||
}
|
||||
}
|
||||
}
|
||||
exports.uploadShippingInfo = uploadShippingInfo;
|
||||
/**
|
||||
* 获取小程序订单状态
|
||||
* @param context
|
||||
|
|
@ -332,7 +336,6 @@ async function getOrderShipState(context, shipId) {
|
|||
}
|
||||
}
|
||||
}
|
||||
exports.getOrderShipState = getOrderShipState;
|
||||
/**
|
||||
* 刷新小程序订单状态(自动确认收货)
|
||||
* @param context
|
||||
|
|
@ -383,7 +386,6 @@ async function refreshMpOrderShipState(shipId, context) {
|
|||
}, {});
|
||||
}
|
||||
}
|
||||
exports.refreshMpOrderShipState = refreshMpOrderShipState;
|
||||
/**
|
||||
* 刷新ship的物流状态
|
||||
* @param ship
|
||||
|
|
@ -454,7 +456,6 @@ async function refreshShipState(shipId, context) {
|
|||
}
|
||||
}
|
||||
}
|
||||
exports.refreshShipState = refreshShipState;
|
||||
/**
|
||||
* 小程序确认收货提醒
|
||||
*/
|
||||
|
|
@ -521,4 +522,3 @@ async function notifyConfirmReceive(shipId, context) {
|
|||
}
|
||||
}
|
||||
}
|
||||
exports.notifyConfirmReceive = notifyConfirmReceive;
|
||||
|
|
|
|||
|
|
@ -160,9 +160,9 @@ class WechatMpShipDebug {
|
|||
name: from.name,
|
||||
mobile: from.phone,
|
||||
// country: from!.area!.parent!.parent!.name!, //国家
|
||||
province: from.area.parent.parent.name,
|
||||
city: from.area.parent.name,
|
||||
area: from.area.name,
|
||||
province: from.area.parent.parent.name, //省份
|
||||
city: from.area.parent.name, //市
|
||||
area: from.area.name, // 区
|
||||
address: from.detail, //详细地址
|
||||
},
|
||||
receiver: {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getShipEntity = exports.getShipClazz = exports.registerShipClazzEntity = void 0;
|
||||
exports.registerShipClazzEntity = registerShipClazzEntity;
|
||||
exports.getShipClazz = getShipClazz;
|
||||
exports.getShipEntity = getShipEntity;
|
||||
const tslib_1 = require("tslib");
|
||||
const assert_1 = tslib_1.__importDefault(require("assert"));
|
||||
let MODULE_USED = false;
|
||||
|
|
@ -15,7 +17,6 @@ function registerShipClazzEntity(entity, clazzConstructor, schema) {
|
|||
(0, assert_1.default)(attributes.disabled && attributes.disabled.type === 'boolean');
|
||||
ShipClazzEntityDict[entity] = clazzConstructor;
|
||||
}
|
||||
exports.registerShipClazzEntity = registerShipClazzEntity;
|
||||
async function getShipClazz(entity, entityId, context) {
|
||||
if (!MODULE_USED) {
|
||||
MODULE_USED = true;
|
||||
|
|
@ -28,7 +29,6 @@ async function getShipClazz(entity, entityId, context) {
|
|||
ShipClazzDict[key] = clazz;
|
||||
return clazz;
|
||||
}
|
||||
exports.getShipClazz = getShipClazz;
|
||||
/**
|
||||
* 创建ship时,根据系统物流的配置去对接对应的物流系统
|
||||
* @param shipId
|
||||
|
|
@ -82,4 +82,3 @@ async function getShipEntity(shipServiceId, orderIds, context) {
|
|||
return [entity, entityId];
|
||||
}
|
||||
}
|
||||
exports.getShipEntity = getShipEntity;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.canStartPay = exports.getWpProductTypeFromEnv = void 0;
|
||||
exports.getWpProductTypeFromEnv = getWpProductTypeFromEnv;
|
||||
exports.canStartPay = canStartPay;
|
||||
const utils_1 = require("oak-frontend-base/es/utils/utils");
|
||||
function getWpProductTypeFromEnv() {
|
||||
switch (process.env.OAK_PLATFORM) {
|
||||
|
|
@ -23,7 +24,6 @@ function getWpProductTypeFromEnv() {
|
|||
}
|
||||
return [];
|
||||
}
|
||||
exports.getWpProductTypeFromEnv = getWpProductTypeFromEnv;
|
||||
function canStartPay(pay, features) {
|
||||
const { applicationId, wpProduct } = pay;
|
||||
if (features.application.getApplicationId() !== applicationId) {
|
||||
|
|
@ -32,4 +32,3 @@ function canStartPay(pay, features) {
|
|||
const types = getWpProductTypeFromEnv();
|
||||
return types.includes(wpProduct.type) && wpProduct.type !== 'native';
|
||||
}
|
||||
exports.canStartPay = canStartPay;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ export default OakComponent({
|
|||
}
|
||||
) || [];
|
||||
const transferData2 = transferData?.map(
|
||||
(transfer) => {
|
||||
(transfer: EntityDict['withdrawTransfer']['Schema']) => {
|
||||
const { price, loss, iState, meta, withdrawAccountId, withdrawAccount, $$updateAt$$, reason } = transfer;
|
||||
let withdrawChannel = withdrawAccount?.channel;
|
||||
if (!withdrawChannel && withdrawAccountId) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue