import { platform } from '../platform'; export function implJsapi(impl) { return function (args) { if (platform() === 'alipay' && impl.alipay) { return impl.alipay(my, args); } throw new Error('unsupported platform'); }; }