Authored by weiqingting

fix filename

  1 +/**
  2 + * 个人中心二维码 model
  3 + * @author: weiqingting<qingting.wei@yoho.cn>
  4 + * @date: 2016/05/16
  5 + */
  6 +'use strict';
  7 +
  8 +const logger = global.yoho.logger;
  9 +var api = global.yoho.API;
  10 +
  11 +exports.getQRcodeData = (id ,uid) => {
  12 + return api.get('', {
  13 + method: 'app.SpaceOrders.getQrByOrderCode',
  14 + order_code:id,
  15 + uid:uid
  16 + }).then(result => {
  17 + if (result && result.code === 200) {
  18 + return result.data;
  19 + } else {
  20 + logger.error(`查看二维码ID: ${id} 接口返回数据错误`);
  21 + return false;
  22 + }
  23 + });
  24 +};