import fetch from 'isomorphic-fetch';
import actionType from '../actiontype/replenish'
import {getTaskList} from "./common";
const domain = ENV.domain;

let myHeaders = new Headers({
    // 'Access-Control-Allow-Origin': '*',
    // 'Content-Type': 'text/plain;charset=UTF-8',
    // 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
    'Content-Type': 'application/json; charset=UTF-8',
});

const wrongQrcode = (errorInfo)=>{
    return {
        type : actionType.SETREPLENISHERRORINFO,
        errorInfo
    }
}
const emptyErrorInfo = ()=>{
    return {
        type : actionType.EMPTYREPLENISHERRORINFO,
    }
}

export {wrongQrcode,emptyErrorInfo}