base.js 267 B

123456789
  1. import { platform } from '../platform';
  2. export function implJsapi(impl) {
  3. return function (args) {
  4. if (platform() === 'alipay' && impl.alipay) {
  5. return impl.alipay(my, args);
  6. }
  7. throw new Error('unsupported platform');
  8. };
  9. }