<commit_before>import createMediaQueryObserver from '../../../mp-weixin/helpers/create-media-query-observer'
export {
  getPushClientId,
  onPushMessage,
  offPushMessage,
  invokePushCallback
}
  from 'uni-core/service/api/plugin/push'
export function requestPayment (params) {
  let parseError = false
  if (typeof params.orderInfo === 'string') {
    try {
      params.orderInfo = JSON.parse(params.orderInfo)
    } catch (e) {
      parseError = true
    }
  }
  if (parseError) {
    params.fail && params.fail({
      errMsg: 'requestPayment:fail 参数 orderInfo 数据结构不正确，参考：https://uniapp.dcloud.io/api/plugins/payment?id=orderinfo'
    })
  } else {
    swan.requestPolymerPayment(params)
  }
}

export function createIntersectionObserver (component, options) {
  if (options && options.observeAll) {
    options.selectAll = options.observeAll
    delete options.observeAll
  }
  return swan.createIntersectionObserver(component, options)
}

export {
  createMediaQueryObserver
}<commit_msg>fix(mp-baidu): 抹平 createVideoContext 写法差异  (#3757)<commit_after>import createMediaQueryObserver from '../../../mp-weixin/helpers/create-media-query-observer'
export {
  getPushClientId,
  onPushMessage,
  offPushMessage,
  invokePushCallback
}
  from 'uni-core/service/api/plugin/push'
export function requestPayment (params) {
  let parseError = false
  if (typeof params.orderInfo === 'string') {
    try {
      params.orderInfo = JSON.parse(params.orderInfo)
    } catch (e) {
      parseError = true
    }
  }
  if (parseError) {
    params.fail && params.fail({
      errMsg: 'requestPayment:fail 参数 orderInfo 数据结构不正确，参考：https://uniapp.dcloud.io/api/plugins/payment?id=orderinfo'
    })
  } else {
    swan.requestPolymerPayment(params)
  }
}

export function createIntersectionObserver (component, options) {
  if (options && options.observeAll) {
    options.selectAll = options.observeAll
    delete options.observeAll
  }
  return swan.createIntersectionObserver(component, options)
}

export function createVideoContext (videoId) {
  return swan.createVideoContext(videoId)
}

export {
  createMediaQueryObserver
}
{'fraction_non_alphanumeric': 0.11504007543611504, 'fraction_numerical': 0.001885902876001886, 'mean_word_length': 3.9463869463869465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1449405', 'n_tokens_mistral': 690, 'n_tokens_neox': 694, 'n_words': 124}