restapi.js 376 Bytes
const restapi = require('../../../utils/restapi.js');

module.exports = {

  /**
   * 爱车追踪-获取爱车位置
   */
  getVehiclePosition: function (userId, success, fail) {
    restapi.req('/web-dj-weapp/smartcar/getVehiclePosition', { userId: userId }, { 'content-type': 'application/x-www-form-urlencoded' }, 'POST', 'json', 'text', success, fail)
  },

}