oak-pay-business/es/aspects/ship.js

16 lines
430 B
JavaScript

import { getShipState } from '../utils/ship';
/**
* 获取小程序订单发货状态
* @param params
* @param context
*/
export async function getMpShipState(params, context) {
const application = context.getApplication();
const { type, } = application;
if (type === 'wechatMp') {
const { shipId } = params;
const shipState = await getShipState(context, shipId);
return shipState;
}
}