增加了小程序支付ship能力带来的变化

This commit is contained in:
Xu Chang 2024-12-26 15:52:57 +08:00
parent 6938821d36
commit 9c3220a2dc
2 changed files with 10 additions and 4 deletions

View File

@ -21,13 +21,14 @@ export interface Schema extends EntityShape {
opers: AccountOper[];
};
export type IAction = 'succeed' | 'fail';
export type IState = 'depositing' | 'successful' | 'failed';
export type IAction = 'succeed' | 'fail' | 'ship';
export type IState = 'depositing' | 'successful' | 'failed' | 'shipped';
export const IActionDef: ActionDef<IAction, IState> = {
stm: {
succeed: ['depositing', 'successful'],
fail: ['depositing', 'failed'],
ship: ['depositing', 'shipped'],
succeed: [['depositing', 'shipped'], 'successful'],
fail: [['depositing', 'shipped'], 'failed'],
},
is: 'depositing',
};
@ -52,11 +53,13 @@ export const entityDesc: EntityDesc<Schema, Action, '', {
depositing: '充值中',
successful: '充值成功',
failed: '充值失败',
shipped: '待用户确认'
},
},
action: {
succeed: '充值成功',
fail: '充值失败',
ship: '虚拟发货'
},
},
},
@ -70,6 +73,7 @@ export const entityDesc: EntityDesc<Schema, Action, '', {
depositing: '#3498DB',
successful: '#52BE80',
failed: '#5D6D7E',
shipped: '#0000CD',
},
},
},

View File

@ -19,6 +19,7 @@ export interface Schema extends EntityShape {
taxLossRatio?: Decimal<4, 2>; // 支付损耗比例,百分数
application: Application;
enabled: Boolean;
shipping: Boolean;
pays: Pay[];
};
@ -35,6 +36,7 @@ export const entityDesc: EntityDesc<Schema, '', '', {
application: '关联应用',
enabled: '有效中',
taxLossRatio: '产品手续费(百分比)',
shipping: '受发货限制',
pays: '支付',
},
v: {