code: function send(data) {
    const url = `${host}/log/cli`;
    debug('send log for api = %s', url);
    setTimeout(() => {
      request.post(
        {
          url,
          json: true,
          form: data,
          timeout: 4000, //4s
        },
        (err, result) => {
          if (!err && result.body && result.body.code === 200) {
            debug('日志发送成功');
          } else {
            debug('日志发送失败', err || result.body);
            // 发送失败的话，就用retcode发送一下存起来
            __WPO.setConfig({ spmId: 'fie-api-error' });
            const logMsg = [];
            Object.keys(data).forEach(item => {
              logMsg.push(`${item}=${JSON.stringify(data[item])}`);
            });
  
            __WPO.log(logMsg.join('&'), 1);
          }
        }
      );
    }, 500);
  }
docs: 发送fie流程日志
  @param {object} data